Slashdot Mirror


Vi IMproved -- Vim

Craig Maloney writes: "Bram Moolenaar's Vim editor has quickly become the clone of choice for users of the venerable vi editor. Unfortunately, until recently finding documentation for the features of Vim meant spending quality time with the help files that come with Vim. While the help files are very good, a manual/tutorial of the Vim editor was needed. Other vi books included scant pages about the improvements of Vim over standard vi, but Vim isn't only a slight improvement to vi. Vi IMproved -- Vim is the manual Vim users need to help them get the full benefit out of Vim." Read on for more of Craig's review of this book below. Vi IMproved -- Vim author Steve Oualline pages 572 publisher New Riders rating 7.5/10 reviewer Craig Maloney ISBN 0735710015 summary The first and only published book covering the basic and advanced usage of Vi IMproved.

Learning to crawl

Books describing editors generally fall into two categories. The first category of books will describe a particular function (like moving through a file) with all the known ways for performing that function, ad nauseum. The second category distills the myriad of ways to perform that function into a handful of the most common or most useful ways. Vi IMproved -- Vim combines both methods with good results.

The first section of the book is entitled Basic Editing; this section introduces the reader to starting and using Vim effectively without getting too bogged down in the gory details of Vim's vi heritage. In the chapter on moving around, the author begins with two methods of movement. In the details portion, the author has the reader performing more complex movements. This is a good approach, much like learning how to walk before learning how to hop, skip, jump, and dance through your document. Unfortunately this approach makes using this book as a reference very difficult. I would read sections that I wanted to use later, only to realize I couldn't find the section again. Vi IMproved -- Vim more than makes up for this shortcoming with a generous appendix detailing the Normal Mode, Command Mode, and Visual Mode commands along with a well-designed quick-reference section.

Made to Order

One of the strengths of Vim over other vi clones is Vim's ability to be used as a regular GUI application, and not just as an xterm-enhanced application.

Vi -- IMproved Vim shows not only how to use the GUI, but also how to customize the GUI to fit the reader's preferences. A good portion of this book deals with customizing Vim to suit the reader's style through the various parameters, menus, and GUI elements. Users who like their editors as stock as possible will find themselves skipping a lot of pages in this book. However even they will be tempted to try out some of the neat functions that pop up as they flip through the pages. The author conveys a sense of exploration, inviting users to experiment and try out new things with Vim.

Errata

Unfortunately, with vi and its clones, a single letter can mean the difference between moving through the document and deleting half of it by accident. Vi IMproved -- Vim is plagued with typos and errors, making this a difficult book for newbies to get into without having the errata sheet from http://vim.sf.net handy. It's understandable why a book like this would have some errors, especially with vi and Vim's terse keyboard commands.

Conclusion

Users of Vim will no doubt be thrilled with Vi IMproved -- Vim. Having a reference outside of the help menus in the program is a godsend for any user of Vim. Unfortunately the errors in this book mar what could have been the definitive book for Vim users, but for those who are starting out with Vim, or who would like to know more about Vim, this book is the perfect starting point and reference. The book covers the 5.x series of editors, but that shouldn't be a problem for most people looking to get started with the 6.x series.

If you're using Vim, you need Vi IMproved -- Vim.

You can purchase Vi IMproved from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

19 of 399 comments (clear)

  1. They're running out of book topics by Anonymous Coward · · Score: 3, Funny

    Next: ls for dummies

    1. Re:They're running out of book topics by spencerogden · · Score: 5, Funny

      Nope, this one is the last on the list, ls has too many options...

    2. Re:They're running out of book topics by irix · · Score: 3, Funny

      I still get a kick out of the "source code" for true on a Solaris box:

      % cat /usr/bin/true
      #!/usr/bin/sh
      # Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
      # All Rights Reserved

      # THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
      # The copyright notice above does not evidence any
      # actual or intended publication of such source code.

      #ident "@(#)true.sh 1.6 93/01/11 SMI" /* SVr4.0 1.4 */

      :)

      --

      Do you even know anything about perl? -- AC Replying to Tom Christiansen post.
  2. EMACS 0WNZ VI by The+Pi-Guy · · Score: 2, Funny

    [mandatory troll about how EMACS 0wnz Vi/Vim here] :)
    --pi

  3. Vim? by FortKnox · · Score: 2, Funny

    Finally!
    Something that I can use that's better than ed!!

    (sorry, it was that or some emacs crack)

    --
    Good quote, too many chars. Seriously, the slashdot 120 char limit sucks!
  4. where to get it by unformed · · Score: 3, Funny
  5. Re:Holy War by Psiren · · Score: 4, Funny

    As opposed to those people who are too dumb to use proper grammar.

  6. Cleans and polishes code!! by Jon+Peterson · · Score: 4, Funny

    It's hard to take seriously a text editor named after a sink cleaning product.

    Vim

    --
    ----- .sig: file not found
    1. Re:Cleans and polishes code!! by GigsVT · · Score: 2, Funny

      As opposed to one named after toy computer systems designed for kids?

      emacs

      --
      I've had enough abrasive sigs. Kittens are cute and fuzzy.
  7. Vi and Emacs gene discovered by LM741N · · Score: 5, Funny

    "Enron Biotech has discovered a gene which may explain the sharply divided preference in the hacker community between Vi and Emacs," said George Stefanscamoulus . "this may help us to utimately produce the perfect hacker". "Only we still haven't figured out which program is really the best. More R&D is needed."

    1. Re:Vi and Emacs gene discovered by Zordak · · Score: 4, Funny

      Yes, Emacs would be a great operating system... if only it came with a decent editor.

      --

      Today's Sesame Street was brought to you by the number e.
  8. Gene Hackman? by Riskable · · Score: 3, Funny

    The obvious answer to that R&D is to ask Gene Hackman which he prefers.

    He'll probably blow us all away and say something completely out of line. Like, "pico".

    --
    -Riskable
    "Those who choose proprietary software will pay for their decision!"
  9. Re:Holy War by the+Man+in+Black · · Score: 3, Funny
    I'm sure you meant
    :%s/people are/people who are/g
    But I forgive you.
  10. Obscure Movie Reference by Alexander · · Score: 1, Funny

    In the voice of Neil from The Young Ones:

    "Ohhhh, I get it. Alan's called Vim and you're Mum's dead."

    --
    "oohhh... I didn't know Schopenhauer was a philosopher!" ..."uhhh yeah, he's the one that begins with
  11. Somebody has to quote the classics... by Mike+Connell · · Score: 2, Funny

    (Attribution at the bottom of the post)

    When I log into my Xenix system with my 110 baud teletype, both vi *and* Emacs are just too damn slow. They print useless messages like, 'C-h for help' and '"foo" File is read only'. So I use the editor that doesn't waste my VALUABLE time.

    Ed, man! !man ed

    ED(1) UNIX Programmer's Manual ED(1)

    NAME ed - text editor

    SYNOPSIS ed [ - ] [ -x ] [ name ] DESCRIPTION Ed is the standard text editor. -----

    Computer Scientists love ed, not just because it comes first alphabetically, but because it's the standard. Everyone else loves ed because it's ED!

    "Ed is the standard text editor."

    And ed doesn't waste space on my Timex Sinclair. Just look:

    -rwxr-xr-x 1 root 24 Oct 29 1929 /bin/ed -rwxr-xr-t 4 root 1310720 Jan 1 1970 /usr/ucb/vi -rwxr-xr-x 1 root 5.89824e37 Oct 22 1990 /usr/bin/emacs

    Of course, on the system *I* administrate, vi is symlinked to ed. Emacs has been replaced by a shell script which 1) Generates a syslog message at level LOG_EMERG; 2) reduces the user's disk quota by 100K; and 3) RUNS ED!!!!!!

    "Ed is the standard text editor."

    Let's look at a typical novice's session with the mighty ed:

    golem> ed

    ? help ? ? ? quit ? exit ? bye ? hello? ? eat flaming death ? ^C ? ^C ? ^D ?

    --- Note the consistent user interface and error reportage. Ed is generous enough to flag errors, yet prudent enough not to overwhelm the novice with verbosity.

    "Ed is the standard text editor."

    Ed, the greatest WYGIWYG editor of all.

    ED IS THE TRUE PATH TO NIRVANA! ED HAS BEEN THE CHOICE OF EDUCATED AND IGNORANT ALIKE FOR CENTURIES! ED WILL NOT CORRUPT YOUR PRECIOUS BODILY FLUIDS!! ED IS THE STANDARD TEXT EDITOR! ED MAKES THE SUN SHINE AND THE BIRDS SING AND THE GRASS GREEN!!

    When I use an editor, I don't want eight extra KILOBYTES of worthless help screens and cursor positioning code! I just want an EDitor!! Not a "viitor". Not a "emacsitor". Those aren't even WORDS!!!! ED! ED! ED IS THE STANDARD!!!

    TEXT EDITOR.

    When IBM, in its ever-present omnipotence, needed to base their "edlin" on a UNIX standard, did they mimic vi? No. Emacs? Surely you jest. They chose the most karmic editor of all. The standard.

    Ed is for those who can *remember* what they are working on. If you are an idiot, you should use Emacs. If you are an Emacs, you should not be vi. If you use ED, you are on THE PATH TO REDEMPTION. THE SO-CALLED "VISUAL" EDITORS HAVE BEEN PLACED HERE BY ED TO TEMPT THE FAITHLESS. DO NOT GIVE IN!!! THE MIGHTY ED HAS SPOKEN!!!

    --
    From: patl@athena.mit.edu (Patrick J. LoPresti)
    Message-ID:
    Sender: news@athena.mit.edu (News system)
    Subject: The True Path (long)
    Date: 11 Jul 91 03:17:31 GMT
    Newsgroups: alt.religion.emacs,alt.slack
    Organization: Massachusetts Institute of Technology
    Lines: 95

  12. Re:Unfortunatley... by koogydelbbog · · Score: 2, Funny

    and something i use daily:

    vim -d file1 file2

    which is like sdiff but also allows you to edit both files.

    favourite (useless) vim command is:
    1GVGg?
    try it. (repeat it to undo. or just 'u')

    andy

  13. Re:Any Text Editor That Needs A Book... by timeOday · · Score: 2, Funny

    On our next episode, "A guy's perspective on the new Tampax with wings."

  14. A good VI tutorial by RPoet · · Score: 3, Funny

    I found this VI tutorial particularly easy to follow.

    --
    "Oppression and harassment is a small price to pay to live in the land of the free." -- Montgomery Burns.
  15. Re:The only problem with Vim is... by ffatTony · · Score: 3, Funny

    Vim looks like someone ate fruitloops and vomited on my screen.

    That's terribly funny, and the worst part of all the vim guys make it some damned hard to disable that crap. You have to get to

    1. start vim
    2. make sure your in normal mode
    3. type :syntax off

    Those bastards. This may seem deceptively short, but those three steps with literally take years off your life. Don't even get me started about editing the damned ~/.vimrc file. I'm only 24, yet my hands haven't stopped shaking since.