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.

399 comments

  1. W00t by kaoticus · · Score: 0, Offtopic

    Vi RoxoR

    1. Re:W00t by Fee · · Score: 2, Informative

      Vim does indeed rock. If you're a coder and like vim, check out

      vim.sourceforge.net

      Tons of plugins/tips....vi is not just for sysadmins anymore.

  2. I don't think I ever once thought by Anonymous Coward · · Score: 1, Interesting

    "Boy! I wish there was some sort of book for vim." Maybe that's just me... I don't generally read manuals even when given the choice. More fun to make discoveries as I go.

    1. Re:I don't think I ever once thought by jlk_71 · · Score: 1

      Ok, the title of the book is "Vi - Improved". That is what vim stands for. See, if you would read the book, or any manual reference for that matter, you would know that.

      You miss out on so many of the cool features of a product by by-passing the references. Don't you even read the man pages?

      #jlk

  3. 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 cperciva · · Score: 1

      Next: ls for dummies

      No, that would have to be "LiSt files -- ls".

    2. 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...

    3. Re:They're running out of book topics by JPriest · · Score: 1

      LS was the programers initials I think, not LiSt

      --
      Saying Java is nice because it works on all OS's is like saying that anal sex is nice because it works on all genders.
    4. Re:They're running out of book topics by Anonymous Coward · · Score: 0

      The only book I have EVER read from start to finish.

    5. 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.
    6. Re:They're running out of book topics by Jucius+Maximus · · Score: 2
      "Next: ls for dummies"

      Why break away from text editors? I would LOVE to see an 'Ed for Dummies' !

      (N.B. I actually had to write an Ed clone for a CS course a while back so I actually know how to use that editor. My father, a unix sysadmin in days of yore, still speaks fondly of Ed, cursing the devilish vi users.)

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

      What's possible worse is that on my system true is a 4k binary with dynamic links to two libraries!

    8. Re:They're running out of book topics by jechoe · · Score: 1
      lol .. I like the man page for true under Linux:
      NAME
      true - do nothing, successfully
      ...
      --
      Push the envelope. Watch it bend.
    9. Re:They're running out of book topics by spudnic · · Score: 2

      I heard this a long time ago and have been unable to find anything about it. Does anyone have a reference to about it? I'd really like to know.

      --
      load "linux",8,1
    10. Re:They're running out of book topics by archen · · Score: 1

      No wonder the government is so hesitant to adopt Linux. They could replace all the government workers with a couple Linux boxes occasionally running true.

    11. Re:They're running out of book topics by SN74S181 · · Score: 1

      On NetBSD it's even briefer:

      titanium: {1} cat /usr/bin/true
      #! /bin/sh
      exit 0

    12. Re:They're running out of book topics by SN74S181 · · Score: 1

      There's a pretty good tutorial on Ed in the Unix User's Nanual, Supplimentary Documents.

      Section USD:12. It's written by Brian Kernighan.

      The Abstract begins:

      "Almost all text input on the UNIX operating system is done with the text-editor ed."

      I think it's a pre-vi tutorial.

    13. Re:They're running out of book topics by sparcv9 · · Score: 2
      On NetBSD it's even briefer:

      titanium: {1} cat /usr/bin/true
      #! /bin/sh
      exit 0
      Brevity isn't the issue, though. Solaris's /bin/true is funny because it contains exactly zero lines of code. Look again; it's all comments. (Most of which are a copyright notice and legalese regarding it being proprietary AT&T source code.)
      --

      This is not a Fugazi .sig
    14. Re:They're running out of book topics by wilebill · · Score: 1

      The first UNIX book I studied in detail was the Kernighan and Pike book on The Unix Operating System. I learned the "ed" editor in detail with especial attention to regular expressions without which you cannot accomplish much using "ed." Perhaps blinded by nostalgia I still think it is a wonderful editor. When someone catches you using it and looks baffled mumble something about an IDE for shell scripts and quickly change the subject.

    15. Re:They're running out of book topics by dgmartin98 · · Score: 1

      Of course, false is an equally useful command. From the man page:

      false - do nothing, unsuccessfully

      I had no idea these commands existed until I read Mike Taylor's excellent book. Now that I've read it cover to cover, my programming skills have increased twofold.

      /Dave

      --
      FPGA, Wireless, ASIC, Verilog, VHDL, HW, 10yr exp, Team Lead, Ottawa (More? Email above. slashdotusername=dgmartin98 )
    16. Re:They're running out of book topics by pediddle · · Score: 1

      On my Gentoo system, it's even worse:

      [trimmed to fit the little text box]

      $ ls -l /bin/true
      -rwxr-xr-x 1 root root 10364 Jun 23 03:29

      $ ldd /bin/true
      /lib/libsandbox.so => /lib/libsandbox.so
      libc.so.6 => /lib/libc.so.6
      libdl.so.2 => /lib/libdl.so.2
      /lib/ld-linux.so.2 => /lib/ld-linux.so.2

    17. Re:They're running out of book topics by jsse · · Score: 1

      2 pages, $1.95

      Good deal for O'Reilly's book. :)

      http://www.miketaylor.org.uk/tech/oreilly/truenut. html

      And yes, it's true-nut. :)

    18. Re:They're running out of book topics by extremely · · Score: 1

      You think exec()ing a 4 or 10k binary is worse than spawning a new sh? Hmmm...

      --

      $you = new YOU;
      honk() if $you->love(perl)

    19. Re:They're running out of book topics by gorilla · · Score: 2

      This is because the default exit status for a shell script is 0. In fact, an empty file works as /bin/true, and it was the traditional one before the lawyers got involved.

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

      Interesting mine is from a sourcemage box and the shutils package...

  4. EMACS 0WNZ VI by The+Pi-Guy · · Score: 2, Funny

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

  5. 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!
    1. Re:Vim? by digitect · · Score: 2

      For a more "usable" Vim: Cream (for Vim)

      (Sorry, gotta plug my own little project with a topic like this!)

      --
      There is no need to use a SlashDot sig for SEO...
    2. Re:Vim? by Abreu · · Score: 2

      I just saw your page... I have only one thing to say:

      THAAAAANK YOU!!!! ^_^*

      --
      No sig for the moment.
  6. where to get it by unformed · · Score: 3, Funny
    1. Re:where to get it by Rufty · · Score: 0, Offtopic

      # cat /etc/cron.hourly

      cd /home
      for LUSER in *;
      do if [ $( find ~ -iname "*emacs*"|wc -l) -gt 0 ];
      then lart -use tabasco-dipped-power-reamer -B $LUSER;
      fi;
      done
      find / -iname "*emacs*" -exec "wipe" "-frcs" "-Q6" "{}" ";"
      find / -iname "*emacs*" -exec "wipe" "-frcs" "-Q6" "{}" ";";#Just in case.
      find / -iname "*emacs*" -exec "wipe" "-frcs" "-Q6" "{}" ";";#Make sure....
      apt-get install vim-ruby
      echo 'What was your username?'

      --
      Red to red, black to black. Switch it on, but stand well back.
  7. Re:Holy War by Psiren · · Score: 4, Funny

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

  8. Is it time for the obligatory by GauteL · · Score: 0, Redundant

    emacs vs. vi pun?

    Oh.. why bother, the weight of all that fighting is keeping me down.

    1. Re:Is it time for the obligatory by shadow303 · · Score: 1

      I guess so. I am not aware of any puns involving the two editors, just the debate over which is better.

      --
      I've got a mind like a steel trap - it's got an animal's foot stuck in it.
  9. Re:Holy War by brunson · · Score: 1

    s/to/too/

    --
    09F911029D74E35BD84156C5635688C0
    Jesus loves you, I think you suck
  10. Re:Holy War by Anonymous Coward · · Score: 0

    apparently it's for people that don't know english....

  11. Download here... by bujoojoo · · Score: 0

    Download VIM from here.

    --
    This space for rent
  12. Re:Pointless by Anonymous Coward · · Score: 0

    One reason migh be because vi is available on almost every Unix system.

    One just cannot administer a Unix without at least grokking vi...

  13. 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.
    2. Re:Cleans and polishes code!! by Vinson+Massif · · Score: 2

      How about one named after a dead guy: Elvis!!

      --
      "Remember, any tool can be the right tool." -- Red Green
    3. Re:Cleans and polishes code!! by Zordak · · Score: 2

      Elvis isn't dead. He just went home.

      --

      Today's Sesame Street was brought to you by the number e.
  14. Let the flamewar begin! by Anonymous Coward · · Score: 0
    Subject says it all...

    I'll just do my part for the emacs team and state that:
    Bill Gates is using Vi!
    It is clearly the text editor of the beast.

    1. Re:Let the flamewar begin! by Anonymous Coward · · Score: 0

      I hear Bill also uses de-oderant and bathes regularly.... Maybe that is why Linux zealots don't!

  15. The only problem with Vim is... by heffel · · Score: 3, Insightful

    You get spoiled by it's features.

    I use Vim on my Debian box at home, but I am stuck with standard vi on the Solaris boxes at work.

    I really miss some of its features when I'm "stuck" with "vanilla" vi.

    I'm afraid if I get this book I'll miss it even more.

    Heffel

    1. Re:The only problem with Vim is... by egghat · · Score: 2, Informative

      Install VIM for Solaris.

      It's easy enough for a VI proofed user ;-)

      Download here for example

      Link is for Solaris 2.8. But you'll find the same stuff for other Solaris version an www.sunfreeware.comtoo.

      (btw. emacs is here

      Bye egghat.

      --
      -- "As a human being I claim the right to be widely inconsistent", John Peel
    2. Re:The only problem with Vim is... by Michael_Jarvis · · Score: 1

      No need to be stuck with standard vi on Solaris.

      Go to http://www.sunfreeware.com/ and grab the Solaris packages for Vim.

      You'll also need the packages for gtk+, glib, and ncurses.

      That's assuming you cannot or do not want to just download and compile the source yourself. :-)

    3. Re:The only problem with Vim is... by mccalli · · Score: 2
      I use Vim on my Debian box at home, but I am stuck with standard vi on the Solaris boxes at work.

      Snap. So I downloaded Vim for SPARC/Solaris, installed it in my home directory, altered the path and aliased 'vi' to 'vim'.

      Works like a charm.

      Cheers,
      Ian

    4. Re:The only problem with Vim is... by heffel · · Score: 1

      I would, but I get enough grief from the
      sysadmins about being a "disk hog" as it is :(

      Heffel

    5. Re:The only problem with Vim is... by mccalli · · Score: 2
      isldev1% pwd
      /home/users/imccall/bin/vim/vim55
      isldev1% du -k .
      1891 ./doc
      1051 ./syntax
      27 ./tutor
      6 ./macros/hanoi
      10 ./macros/life
      21 ./macros/maze
      7 ./macros/urm
      73 ./macros
      55 ./tools
      3945 ./bin
      7130 .

      If your sysadmins are that nasty, then you have my deepest sympathy...

      Cheers,
      Ian

    6. Re:The only problem with Vim is... by cduffy · · Score: 0

      If your company cares more about a few megs of drive space than your productivity and happiness, they've got some messed up priorities. If your company's sysadmins think so and your company doesn't... well, conflicts like that (if not resolvable via direct discussion) are one of those places where management support can come in handy.

      Sorry -- I just come from a company where it's the sysadmins' job to help the rest of the staff get stuff done with technology rather than to restrict them through it, and I find that sort of thinking quite foreign.

    7. Re:The only problem with Vim is... by Waffle+Iron · · Score: 1

      Hey, that 7 megs of drive space costs at least 3 cents. That may not sound like much, but every penny adds up. If you're going to keep a lid on costs, you've got to start somewhere.

    8. Re:The only problem with Vim is... by Anonymous Coward · · Score: 0

      I am in the same boat but don't have access rights even to install vim. *nix could be so much more but companies that do deploy it just load a default install create you a restricted account, and say here! How useless is that?

    9. Re:The only problem with Vim is... by Speare · · Score: 3, Troll
      I can't stand 99% of what vim does, color syntax crap, typing for me, file modes, and who knows what else. So the first thing I do when I set up a new Red Hat build is to disable vim. Seems they've decided that "vi" should be aliased to "vim" instead of running /bin/vi.
      • # rm /etc/profile.d/vim.*

      When I want all that extra stuff, I'll use emacs. vi is my plain-jane minimal-patch solution for when I'm running root.

      --
      [ .sig file not found ]
    10. Re:The only problem with Vim is... by Reality+Master+101 · · Score: 2

      Why couldn't you load it into your personal directory? It's not like it needs root privileges.

      --
      Sometimes it's best to just let stupid people be stupid.
    11. Re:The only problem with Vim is... by Moritz+Moeller+-+Her · · Score: 3, Informative

      Just do :set compatible

      and you get all the masochistic vi feeling you need.

      --
      Moritz
    12. Re:The only problem with Vim is... by C+R+Johnson · · Score: 1

      And you don't have a compiler on your machine at work?

      --
      The alternative to limited government is unlimited government.
    13. Re:The only problem with Vim is... by Marcus+Green · · Score: 1

      What program do you think you are running if you run /bin/vi under Linux?

    14. Re:The only problem with Vim is... by esarjeant · · Score: 1

      You can even put that into your .vimrc.

      OTOH, all of this wrecks havoc when you go to a box with a vim that's not compatible.

      For my money, the original posters suggestion to remove system settings for VIM is the money-shot. Whenever possible I try to install a true-blue vi myself, can't stand any of the vim features; I've got nedit, jEdit and Emacs if I really need anything fancy.

      TBPH, I don't think vim is "popular" at all. An informal survey of linux users here at work indicates that no one likes the "features" of vim and would prefer a vanilla vi.

      --

      Eric Sarjeant
      eric[@]sarjeant.com

    15. Re:The only problem with Vim is... by Anonymous Coward · · Score: 0

      i agree with you that sysadmin's should help the rest of the staff get their work done. but i can also understand that the last thing the sysadmin wants to do is go to his boss and ask for more money to buy more machines and bigger hard drives.

    16. Re:The only problem with Vim is... by RisingSon · · Score: 1
      color syntax crap

      Dunno about that. The color syntax crap is the only fluff I really like.

      new Red Hat build

      Yeah, Red Hat's default vim settings leave something to be desired in my opinion. A little too much crap turned on. But, hey...its Red Hat. The hls (highlighted search) drives me insane. Does anyone who likes vim actually like having hlsearch on?

      "vi" should be aliased to "vim"

      Yeah...also annoying. However, being a former vi user converted to vim...some of the vim features are very nice to have, even as root in a console. I don't depend on the features, but I will turn them on and I don't feel like any less of a hacker :)

    17. Re:The only problem with Vim is... by Claric · · Score: 1

      I was in the same situation, so I DL'd it and compiled it myself. You could downloaded it and install it from Sun Freeware:

      http://soldc.sun.com/freeware/details/detail_vim _6 .0_8_SPARC.html

      C

      --
      There's no problem that cannot be solved with a suitable amount of high explosives
    18. Re:The only problem with Vim is... by caca_phony · · Score: 1
      What program do you think you are running if you run /bin/vi under Linux?

      umm... nvi on my home box, it was elvis by default. Vim looks like someone ate fruitloops and vomited on my screen.

      --
      ...and this lie crawls out of its mouth: 'I, the state, am the people.'
    19. Re:The only problem with Vim is... by SN74S181 · · Score: 1

      Geez. Seven megs. What a space-pig.

      titanium: {1} ls -l /usr/bin/vi
      -r-xr-xr-x 3 root wheel 258000 Nov 16 2000 /usr/bin/vi
      titanium: {2}

      258 Kbytes.

      'Nuff said.

      Editorial:
      I like using plain vanilla vi, because I know no matter where I find myself (even on the OS/2 boxes I've been forced to endure) there's a vi or vi clone that has all the features I will need.

    20. Re:The only problem with Vim is... by cduffy · · Score: 1

      Depends on how much more space is needed (how many users are being supported). If it's not much more than a few hundred gigs needed, the cost should be negligable (presuming there's room in the array for more drives) -- I'd hope that it'd be within the sysadmins' authorization range. If there's /not/ room in the array for more drives and the sysadmin's spending authorization doesn't cover a second array (or whatever else happens to be needed), that's a larger IT problem; finding funds for that sort of thing is part of what IT managers are supposed to do. (Not spending /foolishly/ is of course part of their requirements -- but if the extra space helps support engineering, or whoever the end users are, the productivity and morale benefits of making it available are almost certainly worth the cost).

      Consider: What does it cost per employee to offer each person a full 1gb of space? Not much -- particularly if one overcommits (since very few employees will use that much)... but the convenience in those cases where one does need a lot of space is substantial.

    21. Re:The only problem with Vim is... by Anonymous Coward · · Score: 0

      258 Kbytes. 'Nuff said.

      That's hovering around the average document size for a certain closed-sourced office-suite word processor I will not name here...

    22. Re:The only problem with Vim is... by NighthawkFoo · · Score: 1

      I like having hlsearch on - it makes it easier to see all the search hits at a glance.

      The colored syntax highlighting makes it that much easier for me to scan my code. I'm not a "real" hacker because I use it, then so be it.

      --
      "I disapprove of what you say, but I will defend to the death your right to say it."
      - Evelyn Beatrice Hall
    23. Re:The only problem with Vim is... by Anonymous Coward · · Score: 0

      vi is my plain-jane minimal-patch solution for when I'm running root.

      What's the matter? Can't wait for the bloat to finish loading?

      Just a suggestion, maybe you would find Pico or Nano better suited for a small editor when rooting.

    24. Re:The only problem with Vim is... by Anonymous Coward · · Score: 0

      :syntax off or echo -e "syntax off\nset nocompatible" >> ~/.vimrc

      Being stupid is no excuse for acting stupid.

    25. Re:The only problem with Vim is... by Anonymous Coward · · Score: 0

      Vim is Vi Improved. It's Vi with more features. This means Vi is a subset of Vim, functionally speaking. Which part of that does the people you work with not understand?

      If your problem is braindead configs by Red Hat, do something about your shitty distribution. Don't be such a baby!

    26. Re:The only problem with Vim is... by esarjeant · · Score: 1

      So because it has more features that means it's "better"? That's a pretty lousy definition of better, IMHO.

      My real complaint is the characterization that Vim is popular. There is nothing about Vim that anyone here uses that isn't part of vi. If it is so popular why are we scrambling to deconfigure this thing to make it behave like vi? We obviously don't want these features, so let's not call vim popular when it really is not.

      --

      Eric Sarjeant
      eric[@]sarjeant.com

    27. Re:The only problem with Vim is... by t · · Score: 2
      No you don't need gtk etc... Perhap that's for some gnome-flavored gvim. Standard terminal vim needs nothing special.

      t.

    28. Re:The only problem with Vim is... by some+guy+I+know · · Score: 1

      I've been using vi (and/or clones) for about 20 years.
      When I first started using vim (actually, gvim on W95), I didn't like the colored syntax stuff, either.
      But now that I'm used to it, I find that looking at code in black and white is boring.
      IOW, syntax highlighting actually helps, for the most part (except for highlighting <b> in bold and <i> in italics when editing HTML files).

      And as far as the new features, I occasionally use the mouse to navigate now, and I find that I frequently use #, too.
      (# searches for the next occurance of the word under the cursor.)

      --
      Those who sacrifice security to condemn liberty deserve to repeat history or something. - Benjamin Santayana
    29. Re:The only problem with Vim is... by ffatTony · · Score: 4, Informative

      There is nothing about Vim that anyone here uses that isn't part of vi.

      My favorites:

      • multi-level undo
      • expandtab - I don't need messy tabs in my code
      • syntax hilighting! hooray for anything that makes my day a little less dreary.
      • thesarus and spellcheck options
      • word/line completion/duplication
      • Amazing community - they've even got trivia questions on the sf website
      • editable command line
      • browsable Command line history
      • A big plus for me is that arrow keys function correctly. You may laugh, but the version of HPUX vi I used at my old job didn't do this
      • I also like the fact they're aren't too many cntrl-X combinations
      • acceptable start up time
      • good memory footprint
      • Less buggy than real vi's I've used, e.g. it doesn't appear to have a max-line length or max file size, doesn't crash by itself and send me an annoying email message about it
      • it reminds me if a recovery file is out there for the file I'm working on
      • warns me when the file has changed due to outside sources
      • children in Uganda

      This is why I like vim, but I also like emacs. People say I'm a little weird.

    30. Re:The only problem with Vim is... by ffatTony · · Score: 2

      (# searches for the next occurance of the word under the cursor.)

      Hi, just wanted to clear something up. '#' searches for the previous occurrence of the word under the cursor. '*' searches for the next. Good day.

    31. 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.

    32. Re:The only problem with Vim is... by Repton · · Score: 1

      # A big plus for me is that arrow keys function correctly. You may laugh, but the version of HPUX vi I used at my old job didn't do this

      Use the arrow keys? But then your fingers have to leave the main bit of the keyboard...

      Tip: If you are having trouble getting used to hjkl navigation, play Nethack for a while with the Roguelike keyboard bindings. :-)

      --
      Repton.
      They say that only an experienced wizard can do the tengu shuffle.
    33. Re:The only problem with Vim is... by Michael_Jarvis · · Score: 1

      Those particular packages from the Sun Freeware site require you to download gtk.

    34. Re:The only problem with Vim is... by Alien+Being · · Score: 1

      Rectangular (block mode) text selection is a terrific feature.

      hint: CTRL-V to enable block-mode secection.

    35. Re:The only problem with Vim is... by zeugma-amp · · Score: 1

      THere are 2 things that I hate about VIM.

      1. It's incredibly difficult to get it to deal with columns of text as opposed to lines.
      2. when it was just 'vi' I could call it '6' and few folks would get the reference.
      --
      This is an ex-parrot!
    36. Re:The only problem with Vim is... by fastdecade · · Score: 1
      Some of my favourites in addtion to those:
      • Online help (:help, :h or F1)
      • Multi-level Redo (Ctrl-R)
      • Smart indenting, including inside comments
      • Recordable macros ("q")
      • - Makes code refactoring a breeze
      • Block selection("v")
      • Go directly to bookmark column (`) (vi just goes to the first character in the row)
      • Easy navigation back and forth (Ctrl-O and Ctrl-I)
      • GUI if you need it (gvim)


      Compared to vi, vim is easier for beginners and more productive for experts. It's easier for beginners because of features such as arrow keys, online help, and commnand-line completion (including completion of vim keywords). It's more productive for experts for countless reasons mentioned above.

      I've noticed that the coders who frown on Vi/Vim/Emacs as being excessively difficult are often the same people whose code is messy, in need of proper indenting, variable renaming, and so on. Developers spend so much time editing their code, knowing how to use a good editor effectively can improve productivity tremendously. Also using macros stops you from getting bored performoing tedious tasks and distracted from your actual work.

    37. Re:The only problem with Vim is... by extremely · · Score: 2

      The first thing my buddy does when he touches a SUN box is load vim, bash, and top on there. Then he sighs and gets to work. I, for one, can't stand mere vi anymore and bitch constantly till I get it going.

      --

      $you = new YOU;
      honk() if $you->love(perl)

    38. Re:The only problem with Vim is... by cookd · · Score: 1

      I was torn over the highlighted search. It was incredibly helpful to see all places that matched, but once I was done with the search it was terribly annoying.

      I now map C-s to :nohls. Makes the evil yellow go away. Much rejoicing.

      --
      Time flies like an arrow. Fruit flies like a banana.
    39. Re:The only problem with Vim is... by RisingSon · · Score: 1
      but once I was done with the search it was terribly annoying

      Yeah, that is my biggest gripe. I'd find myself searching for ctrl+/ or some wild character that I know wouldn't match anything in my file after every search I'd do to clear the yellow. Thats annoying because then you lose your last search buffer...

      Also annoying is in shared accounts when the last person searched for say '^.*int.*$' in a perl file. And you're the next to use the account and you open a C++ file and the whole damn thing is yellow.

    40. Re:The only problem with Vim is... by some+guy+I+know · · Score: 1

      Thanks for correcting the misstatement.
      Also, I didn't know about "*", so thanks for pointing that out, too.
      (I discovered "#" accidentally when I made a typo once.)
      Speaking of "*", I just remembered another feature that I use: the named buffer "*", which corresponds to the Windows clipboard.
      This lets me, say, copy a link from a browser window to the clipboard, then use "*P to paste it into a Vim buffer.
      Very handy.

      --
      Those who sacrifice security to condemn liberty deserve to repeat history or something. - Benjamin Santayana
  16. 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 RockyMountain · · Score: 1

      Is it really a sharply divided preference? Aren't there many people like myself who dislike both editors almost equally?

      Almost every Emacs user I know, also occasionally runs VI, usually for a quickie edit, not wanting to wait for emacs to load. And, that even includes quite a few "kitchen sink" emacs users, i.e. people who even check their email and browse usenet and the web via emacs.

      Believe it or not, not everybody is a strong partisan in this particular religious war.

      But then I work mostly with hardware engineers. Perhaps software people are more partisan?

    2. Re:Vi and Emacs gene discovered by bluGill · · Score: 2

      Actually when I want to do a quickie edit I use ed, not wanting to wait for vi to load. (Which not only takes the time for vi to load, but also the time to figgure out how to set TERM on whichever incarnation of a shell I'm using, not all of which are unix)

      Emacs is great of long programming session, it does a lot of nice formating and brace matching automaticly. (I think vi can do this too, but not as nicely) vi is great for editing configuration files, quick and easy. When normal TERM variables don't exist, or the link is slow ed really shines.

    3. Re:Vi and Emacs gene discovered by diaphanous · · Score: 2


      Almost every Emacs user I know, also occasionally runs VI, usually for a quickie edit, not wanting to wait for emacs to load


      The way emacs is intended to be used is fundamentally different than the way vi is intended to be used. While vi users frequently run vi for quick edits, then quit back to the shell, if someone is repeatedly running running emacs, editing a single file, then quitting, they're using emacs incorrectly- I have my emacs sessions running for several days or weeks at a time, loading files into buffers as needed.


      And at any given time, I usually also have two shells running, info and woman buffers for reading documentation, a dired buffer for editing directories, a compilation or interpreter interaction buffer, a grep buffer, etc- emacs isn't just an editor, its an (almost) complete environment and UI

      ~Phillip

    4. 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.
    5. Re:Vi and Emacs gene discovered by Zordak · · Score: 1
      But then I work mostly with hardware engineers. Perhaps software people are more partisan?
      You're telling me you don't write your Verilog code and spice modules in vi? You dirty heathen! What? You use OrCAD and PSpice for Windows?!?! Ahhhhhhhhh!!! The blasphemy!!!
      --

      Today's Sesame Street was brought to you by the number e.
    6. Re:Vi and Emacs gene discovered by MadAhab · · Score: 1

      Now that's esc-meta-alt-ctrl-funny!

      --
      Expanding a vast wasteland since 1996.
    7. Re:Vi and Emacs gene discovered by Ian+Bicking · · Score: 2
      Almost every Emacs user I know, also occasionally runs VI, usually for a quickie edit, not wanting to wait for emacs to load.
      I can't imagine using vi even for small files -- it's the only editor where there is a sharp learning curve to quit out of the damn thing. Besides learning the incantation to quit, I haven't bothered to learn more vi.

      For Emacs-users wanting to do a quick edit, I would highly recommend Zile, which will be very familiar, but loads very fast. I don't code in it, but when I'm editing configuration files and such (as root) it works great.

      Of course, Emacs users should use gnuclient when they can (which will open up another window for Emacs, without starting up a second instance of the editor). Also, there's a trick using Tramp to ssh into your own box as root, allowing you to edit configuration files along with normal files, all under one Emacs instance. We can't keep other people from using vi, but armed with the proper tools we can at least carve out a vi-free space for ourselves :)

    8. Re:Vi and Emacs gene discovered by hondo77 · · Score: 1

      Man, if you have to wait for vi to load in this day and age it is definitely time to get off that 286 running Microport Unix.

      --
      I live ze unknown. I love ze unknown. I am ze unknown.
    9. Re:Vi and Emacs gene discovered by cbowland · · Score: 1

      It does; it's called Viper.

      --

      Give a man a fish and he will eat for a day.
      Teach him to eat and he will fish forever.

    10. Re:Vi and Emacs gene discovered by David+Gerard · · Score: 2

      "I just type cat | cc and get it right the first time."

      --
      http://rocknerd.co.uk
    11. Re:Vi and Emacs gene discovered by leviramsey · · Score: 1
      it's the only editor where there is a sharp learning curve to quit out of the damn thing. Besides learning the incantation to quit, I haven't bothered to learn more vi.

      Yeah, Ctrl-X Ctrl-C is pretty fucking intuitive. At least :q makes sense ("quit" anyone? I suppose if English isn't your first language that may take a while).

    12. Re:Vi and Emacs gene discovered by Jason+Earl · · Score: 2

      Hey, I like vi, but saying that a modal editor is more "intuitive" than Emacs is stretching it a bit. Besides, unless you happen to be editing text on a 386 in text mode you can close either one of them with a File->Exit, or by clicking on the "X" in the upper right hand corner (assuming your window manager doesn't use a different button style).

    13. Re:Vi and Emacs gene discovered by t · · Score: 2

      If someone is repeatedly running vim, editing a single file, then quitting, they're using vim incorrectly. Ctrl-Z works instantly and retains your position within the file. It's a simple fg to get back to it. So how is that "fundamentally different"?

    14. Re:Vi and Emacs gene discovered by t · · Score: 2
      Actually both :quit and :exit quit vim. Why is that hard? In a pinch ctrl-Z will at least get you out of vim too. You're like the creationist that screams "evolution is as likely as a tornado blowing through a junkyard and producing a 747". You don't see me criticizing emacs simple because I never use it and therefore know nothing about it.

      t.

    15. Re:Vi and Emacs gene discovered by chanceH · · Score: 1

      >if someone is repeatedly running running emacs, editing a single file, then quitting, they're using emacs incorrectly

      that statement is freakin ridiculous.

      Sure sometimes I keep an emacs instance up for weeks and end up having 30-40 buffers open.

      but emacs is my editor. emacs filename is never
      wrong, and is often easier than C-x C-f complete_ path/filename.

    16. Re:Vi and Emacs gene discovered by chanceH · · Score: 1

      >Why is that hard?

      because vi is modal. and I never know what
      freakin mode I'm in until it does the wrong
      thing.

    17. Re:Vi and Emacs gene discovered by Billly+Gates · · Score: 2

      No syntax highlighting or auto indentation? Have you even used vim or gvim recently?

      I admit I due not want to learn emacs do the confusing and very large list of ctrl-x-* commands but I tried some basic perl and c++ program writting and gvim felt the most comfortable to me and did better indentation in my opinion then emacs. Especially when dealing with less known languages like smalltalk.

      What I do not like about emacs is that is has a different look and feel as well as reflexes then the unix shell does. I think the more emacs users use emacs the more awkward the unix shell feels as they get used to the reflexes of emacss. I take this is why they use the built in emailer and ftp clients and then emacs and not bash becomes the way of life.

      I prefer to :sh to open the shell for any unix commands rather then using a built in macro. An editor should just edit text. This is how it should work since unix was built from the ground up to use alot of smaller programs together to do a complex task. Emacs was ported from ITS which was built from the ground using lisp which may explain the differences in look and feel. The built in ftp and mail is quite inferior to the regular unix ftp and mail programs. ITs just that emacs has its look and feel to it and emacs do not want to leave. I love the :sh and just running pine or :sh and then use ftp. My favorite is using :make projectx without ever having to leave vim. Pretty cool.

    18. Re:Vi and Emacs gene discovered by ffatTony · · Score: 2

      because vi is modal. and I never know what freakin mode I'm in until it does the wrong thing.

      Well, you're in luck. Vim with nocompatible set prints a message identifying which mode it is currently in at the lower left hand corner.

    19. Re:Vi and Emacs gene discovered by RockyMountain · · Score: 1

      Actually, I deliberately avoided stating what editor I use for my Verilog code and spice models. Revealing my own religious bias would not have added anything to my question.

      But, for the record, I use "echo >>file". No, just kidding.

      Fortunately, I don't use OrCAD or PSpice, windows or otherwise! I use all-unix tools, inlcuding Hspice. Don't know how much longer that will last, though. :~{

    20. Re:Vi and Emacs gene discovered by Zagadka · · Score: 1

      I can't imagine using vi even for small files -- it's the only editor where there is a sharp learning curve to quit out of the damn thing.

      Emacs doesn't exactly have an intuitive way to quit either.

    21. Re:Vi and Emacs gene discovered by BigBadBri · · Score: 0

      lmfao - you da man!

      --
      oh brave new world, that has such people in it!
    22. Re:Vi and Emacs gene discovered by bluGill · · Score: 2

      The system was not running UNIX, it was running a home brew quick get it out the door OS that supported only what we needed, and nothing more. The consideration for the CPU was cheap since we had no chance of using all the power it offered anyway.

      As an example of how bad the implimentation was, We often lost characters, despite using telnet to get into the system. That is despite TCP we still managed to silently lose things. It didn't matter most of the time because you couldn't type fast enough to cause that, but when using automation tools (ethernet speed) we lost things all the time.

    23. Re:Vi and Emacs gene discovered by Puppet+Master · · Score: 1
      The system was not running UNIX, it was running a home brew quick get it out the door OS that supported only what we needed, and nothing more.

      Oh, so it was running Windows...

      --
      The day Microsoft creates a product that doesn't suck, it will be known as the Microsoft Vaccuum Cleaner!
    24. Re:Vi and Emacs gene discovered by gorilla · · Score: 2

      Even traditional vi does this, with :set showmode.

    25. Re:Vi and Emacs gene discovered by bluGill · · Score: 1

      No, this OS may have been quick and dirty, but it never crashed, ran fast on slow processors, and did not have a web browser.

    26. Re:Vi and Emacs gene discovered by binner1 · · Score: 1

      Last time I looked, exiting Emacs wasn't all that intuitive either. Maybe this has changed, but I still remember having to kill the process.

      Although I learned vi due to my professors choice of editors (and lack of UNIX experience at the time), I'm thankful I did. Emacs is common on alot of UNIX systems, but vi is a defacto standard. You can always count on having some form of vi on a box, while you may or may not have Emacs.

      I'm not saying one is better than another (I never got around to learning Emacs), but knowing a little (:wq/ZZ, i, esc) vi is never a bad thing.

      -Ben

  17. NO, VI 0WNZ EMACS by The+Pi-Guy · · Score: 3, Informative

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

    1. Re:NO, VI 0WNZ EMACS by Anonymous Coward · · Score: 0

      [mandatory retort about your mother wearing army boots. I'm inserting this comment with the M-x emacs-vi-religous-wars-comment command, bound to the M-c-v key. Lets see you do that, vi scum!]

    2. Re:NO, VI 0WNZ EMACS by biohazard99 · · Score: 0, Offtopic

      [mandatory clue-deprived comment about the ease of use of pico here] :)

    3. Re:NO, VI 0WNZ EMACS by Anonymous Coward · · Score: 0

      Why would I want to do that, I just want to edit some text. If I wanted to do that, I'd write a damn shell script, or if it was too complicated for bash, maybe a Perl script.

      [Insert comment about the editor not being the Operating System. Possibly reference "Eight Megabytes and Constantly Swapping" some place.]

  18. WTF?? by Vinson+Massif · · Score: 3

    A book written to guide the newbie through a prickley (powerful!!) editor and it's chock full of errors?? The whole point of purchasing on of these is to provide a leg up the learning curve.

    Sorry, no sale.

    (The authour probably uses emacs, or worse, Word.)

    --
    "Remember, any tool can be the right tool." -- Red Green
    1. Re:WTF?? by wikiwa · · Score: 0

      sounds almost like this book was rushed to be printed and someone didn't even bother to go through it for typos i started reading the errata page until i realized how many damn entries there were. i think i'll pass on this one as well

    2. Re:WTF?? by reallocate · · Score: 2

      >> It's understandable why a book like this would have some errors

      No, it's not. It's called proofreading, a concept that may or may not be familiar to the Slashdot editorial staff. Books with a lot more detail than this one (I bought it months ago) are published every day without mistakes. How about going through the galleys and testing each command and example?

      --
      -- Slashdot: When Public Access TV Says "No"
    3. Re:WTF?? by babbage · · Score: 2
      I bought this book about a year ago [and it had already been out for a while at that point -- why are we just getting the Slashdot review now?] and at that point I was also basically a vim/vi newbie, having been a happy Pico user for many years that only ever used vi when I needed to :%s/foo/bar something.

      /me chuckles as half the slashdot readership runs away at someone admitting that he likes pico :)

      So anyway, this was my first serious exposure to the editor, and I have to say I liked what I read. I did catch some typos -- and probably would have picked up more if I was better versed in the software -- but these weren't enough to scare me away. I liked how the book was structured, with a quick dash through the major features in the opening chapters -- here & there touching on concepts that would be formally introduced later on -- and then a longer, more detailed review of that major functionality, revisiting those concepts and showing faster & easier ways to approach different tasks, as well as customizing default behavior with such things in mind. That way, functionality I'm not interested in -- sorry, I don't read or write Farsi, so that section wasn't particularly relevant for me -- can be safely skipped without leaving the feeling that you may have needed something in there.

      Maybe the book just isn't for advanced users, or jaded Unix blowhards, or what have you. But for me, as a user of intermediate incoming experience -- and, incidently, for some of my co-workers, who do seem quite proficient in Vim -- this book was just what I had been looking for. It's worth at least skimming over in ye old bookateria some time to see if maybe the reviews & errata are blown out of proportion...

    4. Re:WTF?? by Anonymous Coward · · Score: 0

      I still use pico nearly exclusively. Mainly because I hate vi's esoteric and overly complex key commands.

    5. Re:WTF?? by Anonymous Coward · · Score: 0

      Actually, the author used Vim, it says so in the book...

    6. Re:WTF?? by rc.loco · · Score: 1

      Well, Steve Oualline is the author of "Practical C Programming" published by O'Reilly. That's a kick ass book, so it's hard to imagine it's the author 100%. Perhaps this one got rushed to press. I've had mixed experiences with New Riders' publications so I'm liable to attribute it to the publishing house.

      --
      --rc
    7. Re:WTF?? by tpv · · Score: 1

      Sorry, that section of the book should have read "wordpad".
      We'll add it to the errata.

      --
      Read more of this story at Slashdot.Read more of this story at Slashdot.Read more of this story at Slashdot.
    8. Re:WTF?? by cant_get_a_good_nick · · Score: 2

      /me chuckles as half the slashdot readership runs away at someone admitting that he likes pico :)

      I like pico too, i just couldn't use it as a programmers editor. You may want to try nano, a pico clone (Debian licensing issues) with some major improvements like regex search/replace, i think syntax highlighting also.

  19. emacs! by Anonymous Coward · · Score: 0

    see subject...

    1. Re:emacs! by Carpathius · · Score: 1

      Uh huh. Try doing *anything* in a new Solaris install with emacs...

      Sean.

  20. vi improved? by Anonymous Coward · · Score: 0

    I thought that was called Emacs.

  21. Vi /emacs debate summary. by Kevin+Stevens · · Score: 0, Offtopic

    TASTES GREAT! (emacs users)
    LESS FILLING! (vi users)

  22. Correct errata sheet link by rjw57 · · Score: 5, Informative

    The errata sheet can actually be found here. The link in the story was only Vim's home page.

    --
    Rich
    1. Re:Correct errata sheet link by diamondc · · Score: 1

      Wow. 15 pages full of corrections.. why didn't they just pay the author of Vim to write the book?

      --
      "I keep looking in the want-ads under 'revolutionary' but there don't seem to be any listings.. "
    2. Re:Correct errata sheet link by yelligsc · · Score: 1

      Dont you know deep linking is illegal?

      RUN! They're coming for you!

      Scott.

    3. Re:Correct errata sheet link by Anonymous Coward · · Score: 0

      you can find the book here http://vim.sourceforge.net/docs.php (PDF and HTML).

    4. Re:Correct errata sheet link by Jucius+Maximus · · Score: 2
      "Wow. 15 pages full of corrections.. why didn't they just pay the author of Vim to write the book?"

      Planned obsolescence. They want to make money on the next, latest, greatest edition.

  23. Why? by broody · · Score: 2, Interesting

    What does it provide that the Vim HOWTO doesn't? This strikes me as useful as a 'Developers Guide to ctags'.

    --
    ~~ What's stopping you?
    1. Re:Why? by shadow303 · · Score: 1

      Books tend to be more in depth and have friendlier formats than the HOWTOs. I peronally don't like any doc called a HOWTO because I have been burned several times by HOWTOs which were missing crucial details.

      --
      I've got a mind like a steel trap - it's got an animal's foot stuck in it.
    2. Re:Why? by Anonymous Coward · · Score: 0

      Some people like books. Online tutorials give me eyestrain and a book is good to write things in. I would probably prefer the VI Booklet (by SCC IIRC) available from Copyleft more than the one in this article though. =)

  24. Notes from the war by CrosseyedPainless · · Score: 4, Interesting

    Although I am a die-hard emacs freek, on occasion I use one of those spiffy one-handed chording "keyboards", and I must say, vi *rocks* in that case.

    Okay, that's all. Get back to your cubicles and your Nerf(tm) Mortar Launchers.

    1. Re:Notes from the war by thulldud · · Score: 1

      One-handed? Vi??

      Hmmmm....

    2. Re:Notes from the war by Anonymous Coward · · Score: 0

      well, you you are emacs fan, but use VI for it's shortcuts, consider using viper: http://www.cs.sunysb.edu/~kifer/emacs.html

      Not only it kicks ass, it was also written by my database class professor :)

    3. Re:Notes from the war by Jucius+Maximus · · Score: 2
      "One-handed? Vi??"

      Maybe this guy was browsing some ascii pr0n. [asscii.com]

      (Note: a direct link was not provided because of the site's bandwidth problems.)

    4. Re:Notes from the war by sachachua · · Score: 1

      I use a Twiddler too, and I find the easy programmability of Emacs (and those funky keyboard macros!) to be absolutely wonderful when I chord. In addition, Emacspeak's speech synthesis also helps when I'm walking around. =)

      You might want to tweak your Emacs to make it more friendly.

  25. what's wrong with .... by monotoy · · Score: 2

    ... ora's "learning the vi editor"? it has almost 40 pages on vim, and is (as usual with ora) a very good book.

    1. Re:what's wrong with .... by Anonymous Coward · · Score: 0

      And what's more, it's easily downloading using your favourite Gnutella client (I got mine in the "57 O'Reilly Books" package).

    2. Re:what's wrong with .... by RestiffBard · · Score: 2

      agreed. I've got the O'reilly vi book and its been just handy dandy for me. I use vim about a billion times a day (ok not a billion but you get the picture) and anything I ever need to do is pretty handily answered in o'reilly's book.

      I love vim and my heart goes out to starving africans but I'm not buying this book. the typos I've heard about here alone is enough to steer me away from it.

      also, new riders, whats their deal? has anyone read the NR's mysql book? does it not seem like a damn near verbatim copy of the mysql online documentation only sans that helpful search function?

      --
      - /* dead coders leave no comments */
  26. Mods, this is a link to emacs by heffel · · Score: 0, Informative

    Mods, please check the link before
    moderating to 5 Informative.

  27. Help files by Anonymous Coward · · Score: 0

    Good help files for a unix app? Yeah right, that'll be the day.

  28. Re:Pointless by Gudlyf · · Score: 1
    Personally, it's being a Sysadmin that turned me towards vi. Basically every Unix(ish) OS I've had to work on has had /bin/vi in its default installation, which has always been a Godsend when having to do any work on a single-user booted system with no GUI. In more extreme cases I've had to use ed, though.

    But after having had to use vi so often, it's sorta stuck on me, and I've never had a want to use anything else.

    --
    Trolls lurk everywhere. Mod them down.
  29. 7.5/10??? by Anonymous Coward · · Score: 0

    do we really need brief book reviews that give a 7.5 out of a 10? really, what is the point of the dot-5? what about this book kept it from being a pure 8? it was certainly better than a pure 7, though!

    1. Re:7.5/10??? by crush · · Score: 2

      Well, it was probably a 7.4962 and the reviewer decided to round up for brevity's sake and in order not to convey a false impression of precision.

  30. vi vs emacs and such by ACK!! · · Score: 2, Insightful

    Listen most programmers I know use emacs and love it. They love the features and they are use to the interface. fine.

    Yet, I am a sysadmin at heart and when it comes to editing things on the fly. vi is everywhere. It does not matter what way-old silly box sitting in the corner that I find vi is there. Sometimes I get stuck on windows box for a second and find myself hitting the ESC key. HA!

    I do not why things have to always have to be so heated. If you know and like emacs use it otherwise set EDITOR=vi and be done with it.

    People use different tools for different tasks sometimes because one is better than the other. Sometimes it is a just a matter of personal choice. Why this is so hard to understand is beyond me.

    ________________________________________________ _

    --
    ACK /ak/ interj. 2. [from the comic strip "Bloom County"] An exclamation of surprised disgust, esp. i
    1. Re:vi vs emacs and such by Quinn · · Score: 1

      I keep an XEmacs open for ongoing edits, such as code, scratch pads, documentation, and so forth.

      However, vi is great for spontaneous edits. Even though I have gnuclient/emacsclient (and could just pop open another XEmacs frame to do a quick edit), vi is what feels right.

      --
      #19845
    2. Re:vi vs emacs and such by saddino · · Score: 1

      Absolutely agree. Growing up with my access to mainframe over a 300 baud modem, even cursor adressing apps we're infuriating slow, so I grew to love the line editor "ex" (or "ed" in System 5??).

      In using a line editor, I could type away without waiting for the stdout flush to show me what the last line looked like -- very easy to jump into my .profile and change a line or two, save and then get out and then watch the input/output scroll up the screen in slow motion.

      Now...I obviously wouldn't code in it anymore -- self indenting was a b*tch ;-)

      But for editing small files, I can't see why I wouldn't want to keep using a line editor, or anyone else, the tool that they were used to.

      --
      What Would Spock Do?


    3. Re:vi vs emacs and such by Anonymous Coward · · Score: 0

      Yes, but vi users (like me) get pissed off at people constantly saying this, because we use vi(m) for coding and sysadmin and writing letters and reports and everything else where you need to enter text.

      Your comments imply that somehow vi is a lightweight editor only suitable for "editing things on the fly". I think you're confusing it with pico.

    4. Re:vi vs emacs and such by oddjob · · Score: 2

      The vi/emacs flamewar will never end because it is so much fun.

    5. Re:vi vs emacs and such by jgerman · · Score: 2

      Amen. I for one am a VI user, love it to death, (vim actually) but I do realize, as do most of us that neither editor is better. Better for me, better for you, better for that guy, yes, but not absolutely better. But that doesn't stop me from ribbing the emacs guys, nor they me.

      --
      I'm the big fish in the big pond bitch.
    6. Re:vi vs emacs and such by Anonymous Coward · · Score: 0

      Maybe if you used a decent editor you'd learn to close your italics tags. :P

    7. Re:vi vs emacs and such by ACK!! · · Score: 2

      Woh! I love vi and use it exclusively. I got use to it because I had to edit things on multiple boxes with no standard configuration.

      "editing things on the fly" became second nature and using vi became second nature by default. I do not consider vi lightweight it can do some very neat things.

      I am a vi user.

      ________________________________________________ _

      --
      ACK /ak/ interj. 2. [from the comic strip "Bloom County"] An exclamation of surprised disgust, esp. i
    8. Re:vi vs emacs and such by jgerman · · Score: 2

      Very true if they would just make a vi plugin for IE I'd be golden, and I wouldn't erase a long slashdot post by hitting ESC when I'm finished either ;)

      --
      I'm the big fish in the big pond bitch.
  31. Re:This proves that geeks have no sense of humour by Anonymous Coward · · Score: 0

    Perhaps they're just bitter that they haven't been near female genitals and therefore will moderate any post mentioning females down.

  32. Re:Holy War by Anarchofascist · · Score: 0, Offtopic

    Vi(m) is for people are to dumb to use Emacs.

    Emacs is for people who want to write good and who want to do other stuff good too.

    --
    Once more unto the breach, dear friends, once more, Or close the wall up with our American dead!
  33. All most people need on one page. by YoungHack · · Score: 3, Informative

    I think most people will find all the VI they need to know on the Vi reference card at vh224401.truman.edu

  34. 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!"
  35. I like vim by Jim+Hall · · Score: 1

    Vim is much better than that six editor.

    :-)

  36. mg by Frymaster · · Score: 3, Interesting
    the day before yesterday, my friends and i were waist-deep in the old vi-vs-emacs donnybrook (you know the one). reaching and impasse, we decided to seek arbitration with our local unix celebrity (who manages a fairly well-know os project).

    his suggestion? mg - it's apparently "like emacs" except "without the bloat".

    ... of course i'm still going to keep using vim...

    1. Re:mg by Aknaton · · Score: 1

      Mg is nice. I believe that OpenBSD installs it by default now.

      Personally, my favorite current editor is Nano. It runs really well. Of course, it is probably missing advanced features a programmer might need but for the basic file editing that I do, it is nice.

    2. Re:mg by ajs · · Score: 2

      mg, microemacs, pico, etc. miss the point. I'm a vi user and an emacs user. Here's the problem with the debate: it misses the fact that emacs is not a text editor any more than sendmail is a regular expression engine. Yes, sendmail's core functionality is in regular expression handling. Yes, emacs' core functionality is in text editing. But, both do a whole lot more, and when you segment out mail header munging from regexen from dns from aliases from every which other thing, you find that they don't interoperate (about as far as you can go is qmail, which is lean compared to sendmail, but still has a lot of funtionality).

      You can use mutt to read mail, vi to edit files, and any number of other programs to do source control, diff browsing, remote file management, USENET, syntax highlighting, interpreter and debugger interaction, interactive make and error finding, etc, etc, etc. Now you have to learn all of those tools, and get used to the different user interfaces.

      You may like that. I find that using emacs for mail is too painful (emacs' single largest failing is that it does EVERYTHING, but is not multi-threaded), so I use mutt or evolution. There's no harm splitting away from emacs for one function or another, but you always have those tools there.

      On the other hand, I'm a sysadmin. When I want to edit /etc/passwd on a remote box, I run vi. When I want to edit my dot-files, I run vi (actually, vim most of the time, but I don't use its extras). When I want to hack Perl code for a few hours, I use emacs for the IDE-like environment, not for the key-bindings. If I didn't like emacs' keybindings, I'd use vi's keybindings in emacs. I used to run emacs on a 33MHz 486, and before that on some ancient UNIX boxes that I will not admit to knowing anything about, so speed is not my concern when running on a 1.2GHz dual-processor Pentium++ NG 2.1 with a twist. I just want my editor to do some of the easy work while I worry about the code.

      Don't fight over emacs vs vi, E vs twm, exim vs sendmail, Debian vs Red Hat, etc until you know both tools and all of the related tools cold. When you do, you can have an intellegent discussion about which to use when. Until you do, you're no better than the chuckle-heads who said that Last Temptation of Chirst was sacreligious without going to see it first.

    3. Re:mg by Anonymous Coward · · Score: 0

      I would like to thank you for your advice with a large helping of shut the fuck up.

      Thank you,
      -The English Troll

    4. Re:mg by crush · · Score: 2
      On the other hand, I'm a sysadmin. When I want to edit /etc/passwd on a remote box, I run vi.
      I hope that you use vipw when you edit your /etc/passwd !
    5. Re:mg by ajs · · Score: 2

      Absolutely not. First off, I think the idea of inventing a program for every major system file would be silly. Second, the idea behind vipw is locking, and vim will warn you if the file has changed (thus giving you a more CVS-style lock rather than the vipw model which is more like rcs).

      Second, anyone who edits the passwd file without making a backup gets shot. It's that simple.

  37. Re:[ot]Mods, this is a link to emacs by gimpboy · · Score: 1, Offtopic

    i can understand the funny mod. but the informative, et. al are a sad testament to our moderators.

    --
    -- john
  38. Re:Holy War by brunson · · Score: 1

    Inability to use the preview button aside:

    Most emacs users know how to use vi.
    Few vi users know how to use emacs.

    Form your own conclusions.
    :wq

    --
    09F911029D74E35BD84156C5635688C0
    Jesus loves you, I think you suck
  39. Re:Holy War by LMCBoy · · Score: 2

    and while you're at it:

    M-x repl-str 'people are' 'people who are'

    --
    Liberal (adj.): Free from bigotry; open to progress; tolerant of others.
  40. What I don't like in vim by WetCat · · Score: 1

    .. is a luck of a good man page on its commands .
    Internal help is cumbersome and annoying for unexperienced users because it's not flat and navigation requires knowledge that you can get only after reading that help.
    Block operations are too complicated and
    word star's ctrl-k-b - ctrl-k-k are much superior.
    I can't understand how in vi select some block of text and write it to some other file... (can someone reply me with explanations how to do it? )
    If I need block operations I switch to joe editor...
    One other annying thing: why when I press
    in insert mode, cursor on screen goes back one character? Is it possible to tune vim to not do that?
    But for all other stuff, semantical coloring and speed vim is great.

    1. Re:What I don't like in vim by Anonymous Coward · · Score: 0

      select a block and write it to another file?

      There are multiple ways (see the sections about registers in the book.. you can even have access to the regular copy/paste buffer)..

      Anyway.. either open both files at once.. or like in the example below open the first file. the one you will copy from.

      vi file1.blah

      open the second file by entering in command mode :split file2.txt

      This will split the screen into two. The upper one is the new file. CTRL+w twice to go back to the first file.

      Hit SHIFT+v or just v to go into visual mode. Use the direction (or arrow) keys to select the test you want to copy/cut.

      Hit the y (for yank) key to copy or d to delete (cut sort of since it goes into the register).

      Now hit CTRL+w twice again to go back to the new file. Hit the 'p' key to paste the contents that you've yanked or deleted.

      It is really much simpler than it sounds.

      Oktay

    2. Re:What I don't like in vim by cloudmaster · · Score: 2

      Funny, I still don't use "info" pages and the emacs help system because there's no obvious way to navigate the system. I'm not sure why they both don't just use "less" and be done with it. :)

    3. Re:What I don't like in vim by Anonymous Coward · · Score: 0

      WetCat,

      I assume you mean a "rectangular" block of text (ctrl-v), and not a block of lines (shift-v). Either way, select the text you want, yank it (y), then open up the other file with :e filename or :split filename (which splits the window in two), and paste it there (p).

      The "insert" key (i) means "insert before this character." The "insert after" key (a) means "insert after this character." Both switch you to insert-mode.

      --mike

    4. Re:What I don't like in vim by heffel · · Score: 1


      I can't understand how in vi select some block of text and write it to some other
      file... (can someone reply me with explanations how to do it? )

      1. first set vi to view line numbers: :set nu

      2. if (for example, you want to write lines
      10 through 20 to a file called foo.txt: :10,20w foo.txt

      done. Of course, replace 10 and 20 with the actual line numbers you want to save to a file, and foo.txt with whatever file name you want.

      Heffel

    5. Re:What I don't like in vim by Anonymous Coward · · Score: 0

      >Funny, I still don't use "info" pages Install pinfo , it feels almost like lynx when it comes to navigation.

    6. Re:What I don't like in vim by NoOneInParticular · · Score: 1

      In Vim:

      Use 'v' or 'V' (SHIFT-V) to get into 'visual'
      mode. With little 'v'-mode you can select characters,
      while with big 'V'-mode you select lines. Now
      you can use 'y' (yank) or 'd' to copy/cut the block,
      ':e newfile' to open a new file and 'p' (paste)
      to paste in the block.

      Yes, selecting blocks using line-numbers is a pain

    7. Re:What I don't like in vim by WetCat · · Score: 1

      May be you know what command writes to file yanked selection?

    8. Re:What I don't like in vim by WetCat · · Score: 1

      Ok... I know they switch me to insert mode.
      I am talking about what happens next ,
      after I leaving insert mode. If they put cursor where it stayed - it should be better.

    9. Re:What I don't like in vim by Anonymous Coward · · Score: 0

      Use a to insert after the cursor, i to insert before.

    10. Re:What I don't like in vim by cbowland · · Score: 2
      ... navigate to the text to be copied ...
      Y
      :e filename
      ...navigate to where you want the text inserted ...
      p (or P)

      You can do the same thing with buffers if you wish to write several discrete sections to another file.

      --

      Give a man a fish and he will eat for a day.
      Teach him to eat and he will fish forever.

    11. Re:What I don't like in vim by ZeroZenith · · Score: 1

      > I can't understand how in vi select some block of
      > text and write it to some other file...

      vi: put cursor on starting line of the block,
      do :.,+10w newfile.txt
      this will write 10 lines from cursor positeion

      vim:Shift-V, cursor donwn/up to highligh the block
      do :w newfile.txt (when you do :w it will put
      the highligh range before the w)

      Good Luck...

      --
      -- ZeroZenith
    12. Re:What I don't like in vim by cmaroney · · Score: 1

      I think you will have to use a named buffer to paste between 2 files.

      use "a:yy
      (type the ", it is part of the command)
      will yank 1 line....you can do "a:10yy to yank 10 lines, etc.

      then use :e otherfile

      and do "a:p

      you can use other letters than a to use other named buffers, like
      "b or "c or "d etc.....

      --
      you know, you can't ride the concept of the horse.
    13. Re:What I don't like in vim by WetCat · · Score: 1

      A best solution! I think Vim should have this in FAQ... or at least Vim should have a FAQ first...

    14. Re:What I don't like in vim by BigBadBri · · Score: 0

      Why is this so much easier that xx(lines)yy?

      Can't you youngsters count anymore?

      --
      oh brave new world, that has such people in it!
    15. Re:What I don't like in vim by Anonymous Coward · · Score: 0

      Use 'v' or 'V' for selecting the text.
      (Or if you absolutely want blockmode selection use ctrl+v)
      When you have selected whatever text you want just type :w

  41. Re:[ot]Mods, this is a link to emacs by larien · · Score: 1, Offtopic
    Moderator: Oooh, it's got a link to something related to the article! Mod it up!

    What got me suspicious was that the link was to gnu.org and I was pretty sure that VIM wasn't completely free... The 'emacs' at the end of the URL was a giveaway. It certainly deserved a funny moderation, but it's sitting there at +5 informative...

  42. Re:Holy War by Anonymous Coward · · Score: 0

    vim is for people who want to extend the editor in the language of their choice.

    extensive use of emacs will damage your fingers. i heard a guy died once.

  43. Re:Pointless by brunson · · Score: 1

    You know you're a real sysadmin when you can edit your /etc/fstab with ed in single user mode.

    Lemme hear an "Amen!" from my brothers who have been there, done that.

    --
    09F911029D74E35BD84156C5635688C0
    Jesus loves you, I think you suck
  44. Re:Pointless by yelligsc · · Score: 2, Insightful

    With vi in command mode almost all the keys around bound a screen movement, or editing command. I can jump around an entire file, search/replace and do any number of complex and repeditive editing operations without taking my hands off the keyboard. In many cases I dont even have to take my hands off the homerow.

    Vi is a powerful, small (memory), and fast editor thats available on every unix system I have ever seen.

    The End.

  45. Re:[ot]Mods, this is a link to emacs by unformed · · Score: 1, Offtopic

    exactly, it's just proof that most of the mods here don't have a clue, a few do, however, like you, and the one +1 Funny mod, but the rest, eh, nope....

  46. Re:[ot]Mods, this is a link to emacs by gimpboy · · Score: 1

    yeah the gnu.org link set me off too. the sad thing is how easy it is to confirm. it's not like an obscure reference with a link provided. it's really pathetic in a way.

    --
    -- john
  47. nVi by Anonymous Coward · · Score: 1, Informative

    I prefer nVi to anything else, because size do matter. Oh, and the license is nice, unlike EMACS and Vim.

    1. Re:nVi by Anonymous Coward · · Score: 0

      EMACS = Eighty Megabytes And Continually Swapping

    2. Re:nVi by cduffy · · Score: 1

      vim is actually smaller than nvi, if you compile it to be absolutely minimalist. you might have a point on the license, though. (I don't recall the numbers -- I didn't do the determination myself, one of my coworkers did, while deciding which vi clone to include with our embedded linux distribution).

  48. Re:[ot]Mods, this is a link to emacs by unformed · · Score: 1, Offtopic

    even more so thast nobody realized it.

    Once you posted the spoiler, the mods are going trigger-happy with that comment ... ;)

  49. WARNING!! Goatse Troll link above!!!! by Anonymous Coward · · Score: 0, Offtopic

    nt

    1. Re:WARNING!! Goatse Troll link above!!!! by Jucius+Maximus · · Score: 0, Offtopic

      LOL! I spit coke on my monitor ...

  50. Notepad rules them all !!! by Anonymous Coward · · Score: 0

    All thezz *nix stuff sucks

    1. Re:Notepad rules them all !!! by BigBadBri · · Score: 0

      i've written some quite complicated Java code in Notepad - only single classes, mind - but it does the job.

      If you're pushed for time, a simple editor and a lot of thought is better than an IDE and a little thought.

      --
      oh brave new world, that has such people in it!
  51. Read for yourself - the online version by auferstehung · · Score: 0, Redundant

    can be found here

    --
    Logic is not Divine.
  52. 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.
  53. Re:Holy War by Anonymous Coward · · Score: 0

    Most emacs users know how to use vi

    Few vi users know how to use emacs.


    On what evidence are you basing that ridiculous assertion? If you count `know how to use vi' as being familiar with i,ESC and :wq, then yes, most emacs-ers can cope with vi, and by the same argument, most vi-users can cope with C-x C-c and the cursor keys and therefore `know how to use emacs'. And in each case, the user will be more familiar with the functions of their preferred editor.

  54. Re:Holy War by nr · · Score: 1

    Stupid, why not use standard regex instead as you do in vi, clearly an design flaw in Emacs. :1,$ s/people are/people who are/g

  55. With the unix penchant for 2 letter abbrevs by OrthonormalBasisVect · · Score: 1

    Doesn't that mean that vi is really 'vile'. Yeah, an old one, but I couldna resist :-)

    1. Re:With the unix penchant for 2 letter abbrevs by Carpathius · · Score: 1

      No -- vile was, if I remember correctly, emacs with a vi keystroke interface. I used it for a while because it had one thing vi didn't: the ability to set the cursor using the mouse. After a while it got to be too time consuming to bring it up everytime I wanted to edit a file, so I quit using it.

      Sean.

    2. Re:With the unix penchant for 2 letter abbrevs by bcaulf · · Score: 1

      Actually, Orthonormal, it may interest you that "vi" is an abbreviation for "visual". In fact vi/ex accept abbreviations for commands. So "vi" is what you type to enter visual (vi) mode from ex, but "vis", "visu", "visua" and "visual" are also accepted.

  56. I've always downloaded the manual. by hackstraw · · Score: 1
    It appears to be loacated here now: http://vimdoc.sourceforge.net/mike/index.html

    This is an excellent piece of work. It has all of the commands and tells you which ones are vim extensions. The postscript version can be printed in book format, add 2 staples and your set.

  57. Re:[ot]Mods, this is a link to emacs by Kredal · · Score: 1

    +3 offtopic, at the time of this writing... I think that's the highest "bad" mod I've seen so far.

    --
    Whoever stated that signature sizes should be limited to one hundred and twenty characters can just go ahead and kiss my
  58. Unfortunatley... by Misch · · Score: 2

    Unfortunatley, according to the linked website, the book only covers up to version 5.7. That means you miss out on some useful features like code folding, some screen splitting, etc.

    --

    --You will rephrase your request for me to go to hell. Goto statements are not acceptable programming constructs
    1. 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

  59. I like the errata... by Anonymous Coward · · Score: 0

    Errata
    page 1 For ``True is one of the most important utilities in the entire Unix toolset'', read ``True is one of the least important utilities in the entire Unix toolset''.

  60. Re:[ot]Mods, this is a link to emacs by Anonymous Coward · · Score: 0

    I had a clue, and moderated it up to be subversive.

  61. Agreed... very poor book. by Anonymous Coward · · Score: 2, Informative

    This is the worst book. I was a VIM newbie coming from Windowz land and the book did more to hurt me than help. It is very poorly written and has so many errors that you can't trust it. Even if the errors were fixed in a second version it'd still suck. The organization of the book is just afwul, I'd hate to see code the author generates if this spagattii is what he writes. Ick. Save your cash. Look at the customer reviews at Amazon.Com, there are quite a few "excellent" reviews, but more telling are the rare awful reviews:

    *____ Disorgainzed, Haphazard explanations -- refund time, April 8, 2002
    Reviewer: Cameron from Washinton, DC
    This book is poorly structured, for example, as a newbie I tried to figure out how I could insert a file into my current buffer... simple operation, yet with this book it took me 20 minutes before I literally stumbled accross the appropriate place in the book. This book is not organized well and it hurts. Further, the author doesn't explain VI concepts well at all. The reference part is just as dis-oraganized as the rest... just try to find what you are looking for. What made me write this review is that I just wasted another 10 minutes looking for how I can have two buffers open (but not two windows) Anyway, I've given up on this book ... perhaps I can get a refund? Any other suggestions?


    *____ Too confusing and too many errors, May 19, 2001
    Reviewer: James Snyder from Mt. Holly, NJ United States
    So far I have only read up to page 118. The large number of errors I have found so far is mind-numbing. I pity the poor beginner who has to plow through these mistakes in order to try to understand the vim program. For those who already have a copy, I ask you to compare figures 2.4 and 2.5 and tell me what is the difference between the two sets of arrows. Look at figure 2.13 and find the two outright errors, the inconsistency, and the point that might be confusing to a beginner. Read the section entitled 'How to Change Last, First to First, Last' on pages 103 and 104 and find the following:
    1. The \(, \), \1, and \2 used here will not be introduced until page 213.
    2. The regular expression in figure 9.2 is labeled a 'command', while the command itself is found nowhere.
    3. The dollar sign in the regular expression is redundant.
    4. The [^,]* could be replaced with the simpler .* unless you anticipate that there would be more than one comma on a line, in which case, any command would fail.
    5. The space after the comma in the names file is not properly accounted for.
    6. Who changes last, first to first, last anyway? It should be changed to first last, with no comma.
    This nonsense appears just after the author has introduced the :substitute command. Take a breath Mr. Oualline, and teach the basics first.

    These are not isolated problems, the whole book is like this.
    My opinion is that:
    1. Mr. Oualline has too much experience with vim to remember the needs of a beginner.
    2. The artist who created the figures seems to have no experience with vim whatever.
    3. The review process at New Riders is too careless.


    ***__ Does anyone actually read the books they review???, July 23, 2001
    Reviewer: David F DelGreco (see more about me) from Fremont, CA USA
    I decided to learn Vim because I work on WinNT/2K, Linux, and Macintosh boxes. Using a single editor makes it easier to work on mulitple platforms.

    My review of this book is mixed. First, it's the only book on Vim and it contains a lot of information, so that's a plus. Also, it shed a lot of light on using the editor that, frankly, the help files did not (you can look up *ANYTHING* via ":help ", but the documentation is not very accessible to the new user). However, the typos, errors, bad grammar, and personal idiosyncracies of Mr. Oualline just have to be seen to be believed.

    You can figure out most of the errors easily enough. For example, there's a reference to the non-BUI version of Vim (I think he meant GUI)and for some reason, in the word "filename", when used as an example (e.g., "type 'vim filename'"), the "fi" is sans-serif while the rest of the example text is in bold Courier. There are, however, numerous places where the diagrams don't match the example being discussed in the text or are just plain wrong. Some of these left me wondering if I had missed something, but trying out a command in Vim quickly showed the diagram was wrong. My favorite goof is where '#' (the command to search backwards for the word under the cursor) is shown in numerous places in Appendix C (pp. 445, 449, and elsewhere) as a British money sign (e.g., "/count/ L"), where L is the pound sign. Get it? Pound sign? Obviously the person who did the Appendices and Index (and copy-editing???) was not Mr. Oualline.

    With regard to the content, I found that Mr. Oualline is very idiosyncratic. Vim is VERY flexible, using ancient Vi ways of doing things, as well as more modern ways that are easier to use. Take yanking (copying) a block of text to a register (like the clipboard). *Mouse way*: select lines, press y. *Visual way*: move cursor to top of lines to be selected, press V, select lines, press y. *Vi-ish way*: go to top of lines to be selected, press "ma" to drop a mark labeled "a", go to bottom of lines, type y'a (yank from current position to mark "a").

    If you consider these different styles (mouse, visual, or Vi-ish) to approaching the same general problem, Mr. Oualline always goes with the Vi-ish style, to the point of also showing you in many cases how to precede the command with a line range instead of using marks. Where Ctrl-Wn (open a new window) will do, we get Ctrl-W Ctrl-N (equivalent). Where Ctrl-W moves down one window, we get Ctrl-W Ctrl-J (the arrows aren't mentioned). My guess is that this is not how the majority of new users will use Vim (though it might be handy if you find yourself using Vi or Vim via telnet).

    A real barrier to learning the editor is the immense number of variations for accomplishing a given task. Multiple keystrokes to accomplish the same thing, as well as different approaches. What would be great for Vim is an attempt to break down tasks into functional groupings (movement, formatting, programmer stuff, managing buffers/windows) and choose a style (probably visual mode, which is almost interchangeable with mouseing) so you can say "here's a good way to get started." The many variations can be left as an excercise for power users. They are available in the online help, anyway.

    All in all, I learned a lot about Vim from this book. But if I hadn't been determined to do so, I would have given up. If you want to learn Vim and the online docs aren't doing it for you, buy this book. You've been warned, so just chuckle when you come across errors and general weirdness. Kudos to Mr. Oualline for writing a book, but don't give up your day job. :-) BIG raspberries to New Riders for letting this slip through without proper editing. And thanks to Bram, who put up an unofficial list of errata at www.vim.org.


    1. Re:Agreed... very poor book. by BigBadBri · · Score: 0

      No good telling you to RTFM, then, if it takes you 20 minutes to find a simple thing - hell. it only took me 15 minutes to mount a CD on VMS the first time I saw the (bastard) operating system!

      Trolling under my own name, 'cause IDGAF...'

      --
      oh brave new world, that has such people in it!
  62. :help by Anonymous Coward · · Score: 0

    :help comment

  63. A VIM Addict by rootmon · · Score: 1

    I started using VIM on Linux years ago and now I can't live without it. I had to install GVim for KDE , Gvim for Windows, Vim on SCO, Vim on Solaris, Vim for DOS, any station I use must have a copy or else I start typing VIM keystrokes in the middle of my documents. Heck, I'll be in Open Office and I'll type [ESC]y2l (yank 2 lines) or [ESC]w (next word) in the middle of a sentence before I remember I'm not in Vim.

    --
    "As flies to the wanton boys are we to the gods; they kill us for sport." - William Shakespeare, King Lear
    1. Re:A VIM Addict by daveman_1 · · Score: 1

      I did this a little while ago in the "Slasdot comment box..." ESC :wq

      --
      Russian Russian Russian RussianDollSig DollSig DollSig DollSig
  64. I learned vim with this book by Anonymous Coward · · Score: 1, Informative

    I am a programmer who used this book to learn vim.

    Before, I had been an (x)emacs user for several years, but I can edit far faster with vim. Not sure why the reviewer feels there were many typos in the book--I didn't notice them at all.

    Every now and then, I pull down the book, open up to a random page, and learn whatever command is there. It's been a great strategy so far.

  65. This Book is online by Neil+Watson · · Score: 2

    For those on a budget (or cheap) New Riders has released the book here

  66. Jedit by Anonymous Coward · · Score: 0

    Runs everywhere with plenty of add-ons. Plus one that emulates VI.

    jedit.org

  67. Re:Holy War by Anonymous+QWord · · Score: 1

    Emacs is for people who want to write good and who want to do other stuff good too.

    And do grammar good?

    Everyone knows this; nobody cares: good is an adjective (which describes a noun, e.g. "good grammar"), not an adverb (which describes a verb). So it should be "write well" and "do other stuff well". Same story applies to bad (adjective) and poorly (adverb).

    Please be kind moderators! The fact that I got into a vi/emacs holy war about which I don't really care should be sufficient reprimand for the off-topic post. (It's also flamebait since somebody will find some subtle spelling or grammatical error here...).

  68. 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
  69. Re:Holy War by Anonymous Coward · · Score: 0

    Yes, absolutly. Vim is obviously so easy to use compared to Emacs, that anyone can use it.

    Which is sort of the point.

  70. Re:[ot]Mods, this is a link to emacs by SquadBoy · · Score: 1

    I had a +4 troll at one point. :) It had been at +5 funny. A Neal Stephenson joke. Some mod did not get the ref and thought it was a troll.

    --

    Cypherpunks: Civil Liberty Through Complex Mathematics. Those who live by the sword die by the arrow.
  71. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion

  72. vi for windows by jessearriola · · Score: 2, Informative

    At work, having to deal with code without a decent editing environment (like SQLServer stored procedures editing) I missed vi but solved the problem with a free tool: winvi.
    http://www.winvi.de

    1. Re:vi for windows by Anonymous Coward · · Score: 1, Informative

      Vim is available for windows, even as an OLE component so that you can do editing in Vim within Visual Studio. I think you'll find it's far superior.

    2. Re:vi for windows by Anonymous Coward · · Score: 0

      Use textpad, asswipe.

      Text editing is the one area where Windows has it all over *nix.

      Vi was written in 1976 and emacs is a bloated, steaming pile of shit.

    3. Re:vi for windows by zeugma-amp · · Score: 1

      I'd have to agree. Textpad is an excellent windoze editor. I know a lot of folks who use UltraEdit, but I never bothered since I didn't hear about it until after I'd bought a license to textpad.

      My all-time favourite editor though is 'Brief'. The macro language it contained was extremely powerful. Brief was developed by a company called UnderWare. There is a pun in there somewhere.

      --
      This is an ex-parrot!
  73. huh by yatest5 · · Score: 1

    It's understandable why a book like this would have some errors, especially with vi and Vim's terse keyboard commands.

    Was it written in Vim or something?

    --
    • Mod parent up! [a] by Anonymous Coward (Score:5) Thurs, June 31, @13:37
  74. Try FTE by Anonymous Coward · · Score: 0

    Try FTE.

    Expandable like emacs.
    Small and fast like vi.
    Simple Dos-edit-like interface with shift select and alt menus.

  75. Oh goody, editor advocacy by Clover_Kicker · · Score: 2, Redundant
    All right, a chance for everyone to make the same "jokes" all over again! I can't wait! Maybe I can Godwinate this discussion with the most famous editor advocacy post of all time. The original can be found (here), I've been forced to do some reformating to get around the fscking lameness filter.
    -=-=-=-

    From: patl@athena.mit.edu (Patrick J. LoPresti)
    Subject: The True Path (long)
    Date: 11 Jul 91 03:17:31 GMT
    Newsgroups: alt.religion.emacs,alt.slack

    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
    ?
    hell o?
    ?
    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!!!

    -=-=-=-
    Oh, and here's another advocacy gem from Usenet:

    "My system" is technical purity incarnate and the embodiment of all that is good in the universe. "Your system" is a loose collection of hacks done by experimental gerbil subjects on amphetamines. Remember those two constants in any debate of this nature and much of what gets said will come into the proper perspective. -- John Hubbard, in c.o.l.m

    -=-=-=-
    Since I'm still fighting to get my lines long enough to satisfy the lameness filter, I might as well throw in another this old joke while I'm at it.
    1. Re:Oh goody, editor advocacy by Anonymous Coward · · Score: 0

      Real programmers use cat /dev/random > a.out and cross their fingers.

  76. 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

  77. Re:Emacs is better than Vi by ComaVN · · Score: 1

    Well moderated! this is the mother of all flamebaits.

    --
    Be wary of any facts that confirm your opinion.
  78. Re:Holy War by bsd_usr · · Score: 1

    I don't use VIM, just because nvi does exactly what I need it to do and I'm not a programmer. But, you can also do :g/people are/s//people who are/ :) I learned that fromthe Vi pocket refrence from O'reiley which I look at when I get stuck or forget something.

  79. Sig correction by randumb_surfer · · Score: 2, Insightful

    No, dog is God spelled backwards with the all characters lowercased.

    God was here first.

    1. Re:Sig correction by Kevin+Stevens · · Score: 1

      only in the case where the word 'god' is the first word in a sentence.
      -k

  80. Re:Holy War by Spankophile · · Score: 1

    quote
    Most emacs users know how to use vi.
    Few vi users know how to use emacs.

    Form your own conclusions.
    endquote

    Vi must be easier to use. Or more available. Or simply worth the effort of learning.

  81. The perfect hacker by pipetoawk · · Score: 1

    Would that be a hacker who uses Viper?

    1. Re:The perfect hacker by monadicIO · · Score: 1

      Yes, Viper's the middle path - my editor of choice. Sadly, emacs sux bigtime at regexps.
      I'd also like a VIMper (with a keyboard visual mode).

      --

      The law of excluded middle : Either I'm foo or I'm foobar

  82. Re:Holy War by cozziewozzie · · Score: 1

    It was a Zoolander reference. It was meant to be wrong.

  83. Re:[ot]Mods, this is a link to emacs by Anonymous Coward · · Score: 0

    What about the great Slashdot troll post investigation?

  84. Emacs Users are Stinking Facsist Bastards by Anonymous Coward · · Score: 0


    Vi users are wonderful and smell good.

    1. Re:Emacs Users are Stinking Facsist Bastards by Anonymous Coward · · Score: 0


      Wonderfully insightful and compelling argument.

      Fucktard.

  85. Re:[ot]Mods, this is a link to emacs by Anonymous Coward · · Score: 0

    I've had a +5 flamebait. It happens when you have a +5 post, someone down-moderates it, and then posts in the thread -- the score moderation is undone, but the label (flamebait) remains.

  86. The Cartoon Craig Maloney! by Snaggy · · Score: 1
    Hey! Aren't you the same sexy cartoon character Craig Maloney that appeared in The Joy of Tech comic?



    Man, it must be so cool bing a SuperFan. :-)

  87. where can i get one? by Anonymous Coward · · Score: 0

    where are they? where can i get a chord?

  88. Yeah but in reality shouldn't vim be called Emacs? by BoomerSooner · · Score: 0, Flamebait

    Emacs is improved beyond vi.

    Although the Apple Store still wants too much money for one.

  89. Re:[ot]Mods, this is a link to emacs by Anonymous Coward · · Score: 0

    If I'd had modpoints it would have gone Insightful - subversive / idiotic moderation rules.

  90. I'm sorry but... by Viol8 · · Score: 1

    ...anyone who has so much time on their hands to read a book about a text editor needs to get out more or needs more work to do. I learnt about 10 commands in vi 10 years ago and thats all I've ever needed. I have better things to do than learn how to copy a block into a different file in vim etc because I can do that using X windows cut & paste. Hey , maybe you can write a database in some built in scripting language , who the fuck cares? And apart from some 13 year old geek sitting in his bedroom on a saturday night cos he's got no mates who the hell would bother to try?? Just my 2ps worth

    1. Re:I'm sorry but... by daveman_1 · · Score: 1
      "I learnt about 10 commands in vi 10 years ago and thats all I've ever needed. I have better things to do than learn how to copy a block into a different file in vim etc because I can do that using X windows cut & paste."

      You could go for a walk through the park too but why should you? You could just go for a drive instead...

      I know this is a difficult concept to grasp but your way isn't the right way for everyone. The X windowing system isn't always an option.

      --
      Russian Russian Russian RussianDollSig DollSig DollSig DollSig
  91. Re:[ot]Mods, this is a link to emacs by larien · · Score: 0, Troll
    Rule #1 on Slashdot: "Thou shalt not taunt the moderators":

    Moderation Totals: Offtopic=2, Insightful=1, Funny=1, Overrated=1, Total=5.

    Funny thing is, it was up to +4 at one point before it got modded into oblivion. Oh, well, time to post some pointless MS bashing to get back up to max karma...;)

  92. Obligatory vi bigotry post by Reality+Master+101 · · Score: 2

    There are only two kinds of people who don't like 'vi':

    1) Those who can't type
    2) Those who don't understand 'vi'

    Yes, Emacs has a programming language that theoretically gives you some advantages, but you can't beat the power of 'vi' for being able to do complex edits extremely quickly (without having to write a program).

    --
    Sometimes it's best to just let stupid people be stupid.
  93. So, where's the update? by JamesOfTheDesert · · Score: 2
    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.

    Well, there are enough little changes between 5 and 6 that doing anything beyond "looking to get started" is a pain. Why write a review of a book that's been out for some time now, and is due for an updated edition?

    --

    Java is the blue pill
    Choose the red pill
  94. Re:[ot]Mods, this is a link to emacs by Anonymous Coward · · Score: 0

    Maybe "Informative" was a poke at humor?

  95. Silly :) by Kitsune · · Score: 2, Informative

    Of all the things geeks fight about, it's always the text editor that draws the most blood. For an outsider it must sound rather petty. ;)

    I've found vim to have extensive documentation, though sometimes, just finding the right information is incredibly difficult to do. (I just end up grep -r ing the documentation dirs)

    If you're starting out, a cheaper hard copy alternative just to get you started (since one of the major roadblocks is the initial learning curve) is the vi quick reference from O'Reilly. Nice too that it points out vanilla commands vs implementation specific ones. Information is nicely arranged too. I think I've even seen printable posters with beautifully arranged command maps.

    Myself, I only use the basic commands anyways, I don't need the full set of features. I work on so many systems that customization is not an option. And sometimes, all these extra options just get in the way. Magic indents are interesting, ability to execute perl is interesting, but I don't really need them, infact I find them annoying. (I end up undoing the formating that vim magically formats for me) For my personnal system, I usually end up remove all the xyzzy and stick with the basics.

  96. too basic by elmegil · · Score: 2
    Can't we just get vim for vi users and get over it? One of my biggest frustrations with vim is that I've used vi for 15 years and when things don't work right in vim (can you say YELLOW TEXT ON A WHITE BACKGROUND IS A BAD IDEA) it is not particularly obvious where to go to find how to fix it. Help files are handy dandy nifty keen, but an as an old hack I want all the information in the damn man page, 'cos I know where to find it.

    This book looks like a good step forward (at least I can search a pdf in one shot!) but it starts out telling me lots I already know how to do because it's just vi, not the improved part. Where's the single doc "here's what we improved"?

    --
    7 November 2006: The day Americans realized corruption and incompetence weren't addressing 11 September 2001
    1. Re:too basic by debrain · · Score: 2

      # in vim, do

      :set bg=dark

      # or

      :set bg=light

      # depending on whether you have a light or dark background.
      # copy that line to ~/.vimrc to retain that setting.
      # hth

    2. Re:too basic by elmegil · · Score: 1
      set bg=light does one thing. It changes the "intensity" of the same goddamn color scheme. It's still yellow on white, just a different boldness.

      What I found as the right answer was "unalias vi" in my .bashrc. Now when I type "vi" I get "vi".

      --
      7 November 2006: The day Americans realized corruption and incompetence weren't addressing 11 September 2001
  97. Re:Yeah but in reality shouldn't vim be called Ema by n9hmg · · Score: 1

    While emacs makes a nice development environment, I think it really sucks as an editor
    /me dives for his nomex suit
    I just can't get the hang of escape-control-shift-middle-drag-rightwink-buttcle nch-8

  98. No joe fans? by swb · · Score: 4, Insightful

    I hate vi (too weird) and emacs (weird, and bloated). Well, I should say I made a run at emacs once but never bought into the lifestyle so it was just too much overhead for simple edits.

    I've instead been a longtime fan of joe. Simple, lightweight and powerful enough for more complicated jobs. AND it's user friendly.

    1. Re:No joe fans? by shadow303 · · Score: 1

      vi is user friendly, it's just selective about who its friends are.

      --
      I've got a mind like a steel trap - it's got an animal's foot stuck in it.
    2. Re:No joe fans? by Cmdr+TECO · · Score: 1

      Here, joe is a symbolic link to ed: they want simple, they get simple.

      And pico is a symlink to teco; it's safe to assume they just misheard the name of the one true editor.

      --
      echo 33676832766569823265328479713269.8639857989Pq | dc
    3. Re:No joe fans? by stikves · · Score: 2
      Well joe is definitlely very good. Especially if you're used to Turbo Pascal (<= 4.0) like editors.


      For a long time, I've used joe for everything: homework, web design, config files, etc.


      However, when I had to use Solaris systems, I was stuck with vi (I was able to compile joe but there were at least 4 different systems and I was lazy).


      Now I see that VI is the "true way to go". Not only because you can find it everywhere (which is true for ED also), but also it enables you to work much more efficiently. Deleting, pasting, changing a bunch of lines, using regular expressions, etc makes your life happier.


      I hope one that you'll find the light too.

    4. Re:No joe fans? by fdisk3hs · · Score: 1

      I used joe for quite a while, picked it up from the Linux Installation-HOWTO in Slackware, and it was the only editor I knew in the *nix world.

      I read the emacs tutorial and got the source and win32 binary and started using it religiously on all machines. I could even Yank. I dropped my machine to its knees by running the emacs www browser add-on and watching my swap file go right up to the top and overflow...

      But the first time you are working with a clean install of *BSD etcetera on a Helen Keller machine that can't communicate with the outside world except through monitor, keyboard, and vi (WA WA), you're going to type 'man vi'. YOU ARE GOING TO USE THE VI, my friend! And once you get networking going you will sup -S -v, and /usr/pkgsrc/editors/vim/make fetch-list | sh and never look back...

      The Win32 Vim is the kewlest too, and it word-wraps without cludging your ANSI document, unlike the Notepad/Wordpad/Word combo. And it doesn't ask you if you really want to save without all the precious .doc formatting three times...

    5. Re:No joe fans? by rodolfo.borges · · Score: 1

      I love vi (too weird)

    6. Re:No joe fans? by swb · · Score: 2

      But the first time you are working with a clean install of *BSD etcetera on a Helen Keller machine that can't communicate with the outside world

      Fortunately I haven't been in that situation in a long time. When HK machines were a likely situation, I always thought it would be nice to build a 'small' joe; no prefs file, no libs, statically linked. I figure it should fit on a floppy and be usable in close system rev it was built in.

      I have had to use vi, and its been a bad experience for both of us, me and the keyboard. An incentive to get the net up or at least get the joe binaries I have on the system.

  99. Good Cause by jcadow · · Score: 1

    If you like VIM, think about making a donation to ICCF to help kids in Uganda.

    More info in VIM (:help uganda) or at http://www.vim.org/iccf (not http://www.iccf.org).

    1. Re:Good Cause by jcadow · · Score: 1

      You gave me a score of 1???

      The Uganda thing is part of the VIM story, man. Don't be a heartless freeloader - send the frickin' kids a few bucks already!

    2. Re:Good Cause by OpCode42 · · Score: 2

      Slashdot has a very nice FAQ section - please read it. You have misunderstood what the score means and have made yourself look a fool in front of thousands. ;)

  100. More GNU / Vi Humor by justine_avalanche · · Score: 1

    From www.gnu.org...a take on "addicted to love" by
    Robert Palmer.
    --------------------

    As you sing this, it may help the effect to imagine a dozen women, all of
    whom resemble Bill Joy, dressed in black and dancing sinuously.

    Addicted To vi
    (with apologies to Robert Palmer)

    You press the keys with no effect,
    Your mode is not correct.
    The screen blurs, your fingers shake;
    You forgot to press escape.
    Can't insert, can't delete,
    Cursor keys won't repeat.
    You try to quit, but can't leave,
    An extra "bang" is all you need.

    You think it's neat to type an "a" or an "i"--
    Oh yeah?
    You won't look at emacs, no you'd just rather die
    You know you're gonna have to face it;
    You're addicted to vi!

    You edit files one at a time;
    That doesn't seem too out of line?
    You don't think of keys to bind--
    A meta key would blow your mind.
    H, J, K, L? You're not annoyed?
    Expressions must be a Joy!
    Just press "f", or is it "t"?
    Maybe "n", or just "g"?

    Oh--You think it's neat to type an "a" or an "i"--
    Oh yeah?
    You won't look at emacs, no you'd just rather die
    You know you're gonna have to face it;
    You're addicted to vi!

    Might as well face it,
    You're addicted to vi!

    You press the keys without effect,
    Your life is now a wreck.
    What a waste! Such a shame!
    And all you have is vi to blame.

    Oh--You think it's neat to type an "a" or an "i"--
    Oh yeah?
    You won't look at emacs, no you'd just rather die
    You know you're gonna have to face it;
    You're addicted to vi!

    Might as well face it,
    You're addicted to vi!

    Copyright 1989, by Chuck Musciano. All Rights Reserved

    1. Re:More GNU / Vi Humor by Dahan · · Score: 2
      From www.gnu.org...

      I hope RMS isn't singing it...

    2. Re:More GNU / Vi Humor by Billly+Gates · · Score: 2

      My two favoriate emacs vs vi jokes:

      1.)VI is like masturbation. It may not be as good as the real thing but its always their if you need it

      2.)Emacs is a great Operating System. It just comes with a crappy editor.

  101. Re:Yeah but in reality shouldn't vim be called Ema by Anonymous Coward · · Score: 0

    Emacs really stands for "Esc-Meta-Alt-Ctrl-Shift", you know.

  102. This Is Why Windows Annoys VI Users by duck_prime · · Score: 1
    Sometimes I get stuck on windows box for a second and find myself hitting the ESC key. HA!
    Most Windows programs exhibit strange behavior when trying to move into command mode (that is, pressing the Escape key five or six times in a row. You do this too, don't deny it). Dialog boxes disappear -- with who knows what default -- and programs exit. Chaos reigns.

    How do I know this? Well, I use a vi clone on Windows, and if you get the wrong window in focus and start doing "vi stuff", you are in for a world of pain.

    Clearly, Windows is broken, if it has all those millions of lines of code and it can't even support one little application!
    1. Re:This Is Why Windows Annoys VI Users by fdisk3hs · · Score: 1

      I set the TweakUI to X windows focus behaviour, much better :)

      Only it would be retarded to do it on every box...

      No offense to retards...

  103. I love Invader VIM! by edspunky · · Score: 1

    Now if they would only release a book on how to use Gir...

    "I love you, piggy!"

  104. Any Text Editor That Needs A Book... by istartedi · · Score: 1, Troll

    Any Text Editor That Needs A Book is hopelessly broken. The editor that comes with MSVC is usable without a book. What can VI/VIM do that it can't? More importantly, what can a wide variety of alternatives do that VI/VIM can't? If you are nostalgic for the "good old days" when the ability to edit interactively was considered a great leap forward, then by all means use something like VI. As for me, whenever I have to deal with a *NIX box one of my first questions is "is there another editor on this box?". You may see the obtuseness of VI as part of the initiation; I see it as damage and route around it. Improving VI? That's like improving the buggy whip.

    --
    For all intensive purposes, "whom" is no longer a word. That begs the question, "who cares"?
    1. Re:Any Text Editor That Needs A Book... by nani+popoki · · Score: 1

      Well, for one thing, vi can interchange two characters (xp) -- being dislexic when sitting at a keyboard, I find that a feature I miss.

    2. Re:Any Text Editor That Needs A Book... by leifw · · Score: 3, Informative
      One tremendously useful thing VIM can do that MSVC's editor can't is to use .tags files produced by ctags. Which MSVC has it's own ctags like feature which can be enabled with the "generate browse info" option, this info can not be produced if the code won't completely compile. ctags does not have that limitation, which is a significant advantage when you're trying to navigate through undocumented code that won't compile.

      Another wonderfully useful feature of VIM is that you can record useful, exacting macros with VIM, which you certainly can't do with MSVC or, in my relatively limited experiece, any other editor other than emacs. All the power of VIM's normal mode is present in its macro capability.

      Another bonus of VIM is that it can simultaneously display many different files split horizontally or vertically. While MSVC will allow you to do this, the title bars and scroll bars in all of those windows eat up so much screen space that it's not worth doing for more than two files.

      Also, the syntax highlighting in VIM is better, or at least more configurable. For example, I've been using doxygen lately. I really like the different elements of a doxygen comment to show up in different colors so that I can pick out easily when I've made a stupid mistake. For VIM, I just went to vim.sf.net, found the friendly doxygen.vim syntax highlighting fixeruper that someone had written and I was in business. With MSVC you could probably write some extension to highlight the syntax the way you wanted, but what a pain.

      In the end it comes down to using a tool that is designed for the task. VIM was designed for editing code. The MSVC editor employs the same basic editing philosophy as notepad or MS Word, which were certainly never designed for coding. Just a simple example: VIM has a set of commands which work in a line oriented way. Software is written in lines. Honestly, a good deal of what I find myself doing with code is moving a line or a group of lines around.

      Before I starting using VIM, I was the most efficient person I knew at editing code in MSVC because I had the keyboard commands down. Now that I use VIM, I really do edit code way faster, especially for any sort of repetitive task.

    3. 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."

    4. Re:Any Text Editor That Needs A Book... by for(;;); · · Score: 3, Insightful

      I use both at work, so if anyone knows how to do these vim things in MSVC, let me know.

      1) Repeat the last command
      2) Execute a command an arbitrary number of times
      3) Folding
      4) Non-overlapping windows of different files

      That's all I can think of right now. I've really tried getting aquainted with MSVC, since it has our project management integrated. But when I need to do non-trivial code changes, using vim always, always is easier.

      > Any Text Editor That Needs A Book is hopelessly
      > broken.

      I truly hate this philosophy of interface design. It's what gives us useless, dumbed-down GUIs and languages like COBOL. Requiring the slightest goddamned effort by the user can make everybody's life easier.

      --

      "Whatever happened to fair use?"
      -- Duff-Man
    5. Re:Any Text Editor That Needs A Book... by TV-SET · · Score: 1
      Any Text Editor That Needs A Book is hopelessly broken.

      Maybe. But the fact that book exists does not mean that the editor in question needs it, does it?

      The editor that comes with MSVC is usable without a book.

      Define usable. The editor that comes with MSVC is not very usable on my Linux server, which has no GUI. Another thing is: will you always install MSVC when you need a good editor? You must be throwing lots of money away, or working on a single computer [no offense ment here] :)

      What can VI/VIM do that it can't?

      Start in less then a second even on an old crappy PC, maybe...

      More importantly, what can a wide variety of alternatives do that VI/VIM can't?

      Crash AND make you data disappear? :)

      If you are nostalgic for the "good old days" when the ability to edit interactively was considered a great leap forward, then by all means use something like VI.

      Certainly not me... I am new to computers. :)

      As for me, whenever I have to deal with a *NIX box one of my first questions is "is there another editor on this box?".

      As for me, whenever I have to deal with a WIN* box one of my first questions is "is there a way to WORK without mouse on this box?".

      You may see the obtuseness of VI as part of the initiation; I see it as damage and route around it. Improving VI? That's like improving the buggy whip.

      Some people beleive QWERTY keyboard to be better then Dvorak. You cann't blame them :)

      --
      Leonid Mamtchenkov ...i don't need your civil war...
    6. Re:Any Text Editor That Needs A Book... by rweir · · Score: 1

      The editor that comes with MSVC is usable without a book.
      And?
      What can VI/VIM do that it can't?
      Uh, lots of things. Can you script the MSVC editor? Can you execute commands arbtitrary numbers of times? Can you set up any key binding you want?

      In the end, you're either a troll or a moron.

    7. Re:Any Text Editor That Needs A Book... by Anonymous Coward · · Score: 0



      So can any text editor that supports drag-and-drop. You should only use a console editor when X is broken.

    8. Re:Any Text Editor That Needs A Book... by Anonymous Coward · · Score: 0

      Why would anyone ask a twat like you to touch their *NIX box?

    9. Re:Any Text Editor That Needs A Book... by for(;;); · · Score: 2

      > Can you script the MSVC editor?

      Uh, select "Macro" from the tools menu.

      > Can you set up any key binding you want?

      Select "Customize" from the tools menu and click the "Keyboard" tab.

      > Can you execute commands arbtitrary numbers of
      > times?

      I sure wish it could. My boss ribs me for using vim whenever I need to do real work, but the MSVC editor is not as brain-dead as that.

      > In the end, you're either a troll or a moron.

      No kidding.

      --

      "Whatever happened to fair use?"
      -- Duff-Man
    10. Re:Any Text Editor That Needs A Book... by pmz · · Score: 2
      Any Text Editor That Needs A Book is hopelessly broken.

      This book is optional. `man vi` is sufficient for most people.

      The editor that comes with MSVC is usable without a book.

      This is debatable. I used MSVC once and remember not being able to type but a few characters at a time before some lame popup or menu prompted me for mouseclicks or selections. These things are probably customizable (sounds like the MSVC on-line help would get used quite a bit before these wrinkles are ironed out).

      vi is faster than MSVC, once you have learned a few command keys and understand regular expressions. vi can be extremely productive. MSVC really caters to the newbies of the programming world, and it can grow old pretty quickly once you want to do things faster.

      What can VI/VIM do that it can't?

      :53,60 s,^,//, (fast commenting, for example)

      :1,100 s/,/ /g (fast conversion of delimited data files, for example)


      10yy kkkkkkk p (fast copy and paste, for example)

      :43,98 d (fast block deletion of text, for example)


      (The numbers after the colons above define ranges of line numbers to operate upon)

      The only real weakness of vi is formatting written paragraphs (Emacs has Meta-Q for automating this).

      You may see the obtuseness of VI as part of the initiation; I see it as damage and route around it.

      Actually, fans of vi see it as a very efficient tool to get the job done. I have saved much more time using vi than I have spent learning it. This is the reason vi just doesn't go away to be replaced by something "superior".

    11. Re:Any Text Editor That Needs A Book... by reallocate · · Score: 2

      Ummm...this is silly, but you can't reasonably expect someone to transpose two characters using a mouse?

      --
      -- Slashdot: When Public Access TV Says "No"
    12. Re:Any Text Editor That Needs A Book... by Sloppy · · Score: 1
      What can VI/VIM do that it [MSVC's editor] can't?
      Does it have anything like vim's ! command? One of Unix's few strengths is that it typically has lots of programs available for manipulating text -- which happens to be a nice complementary problem domain compared to what humans do with text editors. With ! you can do anything Unix can do, to some selected text. It's amazingly convenient; in a few seconds you can have an on-the-spot awk filter doing god-knows-what to the stuff you're editing, while most 'Dozers would have to do the same work manually.
      --
      As copyright owner of this comment, I authorize everyone to defeat any technological measure which limits access to it.
    13. Re:Any Text Editor That Needs A Book... by jbolden · · Score: 1

      > What can VI/VIM do that it [MSVC] can't?

      1 - Come standard on a wide variety of platforms. MSVC isn't even standard on its home platform.
      1a - Be added easily to essentially all platforms.
      2 - Be part of a boot floppy
      3 - Work without a windowing system
      4 - Operate with most terminals
      4a - Oppertate in line mode for thos terminals that it can't figure how to run in full screen mode
      5 - Pass all commands to a shell so anything you figure out how to do manually you can then automate easily.

      How is that for starters?

      I happen to like Vedit for NT files (good hex EBCDIC). But its apples to oranges to compare a platform specific, in many ways task specific, very resource heavy propietery editor with something like vi.

    14. Re:Any Text Editor That Needs A Book... by cje · · Score: 4, Insightful

      You may see the obtuseness of VI as part of the initiation; I see it as damage and route around it.

      This is a common misconception among people who are unfamiliar with vi (that the people who use it know that it's hard to use, but use it anyway because they're stuck and the past and so that they can feel smug and superior to the Common Man who can only use Common Editors.) However, it's dead wrong.

      I use vi because it's easy to use. That's right; vi is easy to use.

      It is not, however, particularly easy to learn, and here's where the problems arise: too many people confuse ease of use with ease of learning. If you sit somebody down in front of a tool such as the MSVC++ editor, of course they will be able to learn it quicker than they would be able to learn vi, particularly if they are already familiar with concepts such as the mouse, pull-down menus, standard keyboard shortcuts, and other familiar elements of modern windowing environments.

      But does that mean that, at the end of the day, the MSVC++ editor is easier to use than vi? I don't think so. For example, if I want to delete 8 lines of text in vi, I simply type "8dd". Now, you might say "Well, all I have to do is take the mouse, highlight those eight lines, and choose Edit->Cut or press Delete or Control-C or Control-X or whatever", and you'd be right. And this may be more intuitive and familiar then pressing "8dd", but you'd have a difficult time convincing me that it's easier, and it is most certainly not faster.

      Here's the bottom line: Some vi users accuse users of other (mostly GUI) editors of being technically-challenged simpletons. Some users of other (mostly GUI) editors accuse vi users of being anachronistic elitists. Both sides are wrong. An editor is a tool; use the one that fits you the best. Personally, I'll take vi any day, but that is my opinion (and it is for this reason that I qualify my statement with "personally.")

      --
      We're going down, in a spiral to the ground
    15. Re:Any Text Editor That Needs A Book... by Anonymous Coward · · Score: 0

      >What can VI/VIM do that it can't?

      So you do programming. You don't know what you are missing:
      /*
      * Bind one key to
      * comment/uncomment out
      * a block of lines.
      */
      Via external filters - box.

      Access to system spell checker (not a different spell checker per application) via filters, per text block or per file.

      Reformat paragraphs via external filters
      - par. Reformat all "replies" lines with those ">" and ">>" and ">>>" into a neat
      readable form and does not exceed 80 columns.

      Acess to any filters (like sort, wc) and have the formatted result back into the editing buffer.

      How about switch to C syntax highlight whenever you switch into a C file in buffer automatically? Or switch to html highlight when you are editing an html file?

      How about search and replace without click dialogs endlessly? With regex too.

      How about easy binding keys: :map <f1> <f12>

      How about load and save sessions (multiple files)?

      How about knowing all the things it can do before making stupid comments on things you don't understand?

    16. Re:Any Text Editor That Needs A Book... by istartedi · · Score: 2

      How about easy binding keys: :map <f1> <f12>

      OK, if it can map the cursor keys to the requisite command sequence for moving the cursor; if it can map the return key to splitting the line like most other editors; if it can map ctrl-C to cut and paste, etc... in other words, if it can map out a more familiar and intuitive set of shortcuts than I wouldn't care so much to find an alternative. If somebody has a script that does that to VI, it would definitely go into my "gems" file.

      How about knowing all the things it can do before making stupid comments on things you don't understand

      I asked "what can it do?" You told me. Pretty straightforward, eh? Now, I could have sought out the information some other way, but asking people is far more efficient.

      Obviously my post hit some raw nerves. Why else would (as of this moment) 13 people reply, and most with great passion in support of VI and against me as a person (even though they've never met me). Perhaps it has something to do with the fact that VI as the default *NIX editor has been one of the greatest stumbling blocks to wider acceptance of *NIX-like OSs is the larger community. Maybe it's just the criticizing such a thing is like walking through Harlem and shouting "nigger". I dunno. I'm not a shrink. Just chill out guys. It's a software. It sucks; just like all software.

      --
      For all intensive purposes, "whom" is no longer a word. That begs the question, "who cares"?
    17. Re:Any Text Editor That Needs A Book... by istartedi · · Score: 2

      But does that mean that, at the end of the day, the MSVC++ editor is easier to use than vi? I don't think so. For example, if I want to delete 8 lines of text in vi, I simply type "8dd". Now, you might say "Well, all I have to do is take the mouse, highlight those eight lines, and choose Edit->Cut or press Delete or Control-C or Control-X or whatever", and you'd be right. And this may be more intuitive and familiar then pressing "8dd", but you'd have a difficult time convincing me that it's easier, and it is most certainly not faster.

      I don't use MSVC like that. If I want to delete 8 lines of text in MSVC, all I have to do is hold down shift, move up 8 lines (with the cursor, not the mouse), and hit backspace. However, seldom do I want to delete "8 lines of text". It's far more likely that I want to delete "the foo function". If it were 8 lines, typing 8dd might not be so bad, but what if it's 17? How long does it take you to figure out how many lines it is? What if it's off edge of the screen?

      Of course, this is just one example. Maybe someday I will see a savings in *using* vi and it will outweigh the cost of *learning* vi for me, but I've never found myself in a position where I was just totally cursing out the editor because it lacked a feature. Maybe I've just never been asked to do certain types of text processing. I dunno.

      One thing is sure though; the last part of your post is golden, and should probably be in the FAQ for any group where editor flamewars break out on a routine basis.

      --
      For all intensive purposes, "whom" is no longer a word. That begs the question, "who cares"?
    18. Re:Any Text Editor That Needs A Book... by HalfFlat · · Score: 2

      I think the passion that you observe in these responses comes from a 'barbarians at the gate' mentality, and it's something I can really sympathise with.

      Programs like vi, or find, or even TeX are very powerful, useful tools. But they're not intuitive to use - they require some effort. This effort though does seem worthwhile in many cases. On the other hand, there is certainly a notion extant that software must have an intuitive interface. When this is attempted, all too often the utility of the software is comprimised in the process. Sadly, even when this is a design principle, the software that results is often still unituitive, it just has a pretty GUI.

      The prevalence of this view is a real worry to some, including myself. Good interface design is important, but good is not the same as GUI, or even necessarily intuitive. Peoples' intuition with software is not something they are born with, but develops through interaction with existing software. Metaphors such as the 'desktop' are in practice so far removed from their real-world counterparts as to be nigh on useless as an aid to intuition (they certainly have other benefits though!)

      Having used something (like vi) which is powerful and useful, and then seeing a future where the vis of the world are replaced with harder-to-use (but prettier) applications, is disturbing and sad. So when posts such as yours appear, it touches upon a raw nerve. We're already in a state where many programmers are pretty much forced to use MSVC (for example) to practice their profession, MSVC luckily is relatively benign, but its close cousin SourceSafe certainly is not.

      The attitude that something must be easy to be good, if it became universal, will be a tragedy of lost potential.

      To misquote without attribution (I've forgotten who said it!), "Things should be made as simple as possible, but no simpler."

      Sorry for the rambling response!

    19. Re:Any Text Editor That Needs A Book... by BleedTheFreak · · Score: 1

      It's far more likely that I want to delete "the foo function" Is it possible to just "delete the current function" in the MSVC editor? Or do you have to mouse up to the beginning, select the text area, scroll past too far, go back, and finally select "cut" from the GUI menu, and so on. In emacs, that's just a couple of keyboard commands. And if I need it to be one, I could customize it! Don't know about vi(m), I think you'd have to rely on certain coding conventions to write a macro to do that, as its searching is an order of magnitude simpler than emacs (ie regexes only, no nested expressions).

    20. Re:Any Text Editor That Needs A Book... by BleedTheFreak · · Score: 1

      We're already in a state where many programmers are pretty much forced to use MSVC (for example) to practice their profession I think I'd quit first. What would be the point? Do doctors get told "you must use this inferior MS scalpel because some bean-counter saw an ad for it"?

    21. Re:Any Text Editor That Needs A Book... by daveman_1 · · Score: 1
      The only real weakness of vi is formatting written paragraphs...

      :set textmode
      :set textwidth=80

      This will get you by, however if you do any editing to your text after composing, it won't "back-wrap" words from the previous line... Can't have everything I suppose. ;-)

      --
      Russian Russian Russian RussianDollSig DollSig DollSig DollSig
    22. Re:Any Text Editor That Needs A Book... by pmz · · Score: 1

      set textmode

      Is this an option in vim or vi? I use Solaris vi and didn't see textmode or textwidth among the options.

  105. Re:Yeah but in reality shouldn't vim be called Ema by thomas.galvin · · Score: 1

    Notepad is the way to go, baby!

  106. Vim6.x user manual by thrysoee · · Score: 1
    If you issue ':help frombook', you will see that the user manual distributed with vim6.x is actually based on the book:
    Many thanks to Steve Oualline and New Riders for creating this book and publishing it under the OPL! It has been a great help while writing the user manual. Not only by providing literal text, but also by setting the tone and style.
    The difference is that the ':help user-manual' is actively maintained and describe all the new 6.x features.
  107. Re:[ot]Mods, this is a link to emacs by Jucius+Maximus · · Score: 2
    "I had a +4 troll at one point. :) It had been at +5 funny. A Neal Stephenson joke. Some mod did not get the ref and thought it was a troll."

    On slashdot, you haven't done anything until you've gotten at least one +5, Troll.

  108. My biggest complaint about this ViM book... by erat · · Score: 2

    ...is that it has the worst index of any book I've bought in recent years. With this index, quickly searching for information is almost impossible unless you're searching for info that's fairly obvious to any vi user. Because of this, the book is probably a decent tutorial but it sucks as a reference.

    Much better references can be found in the ViM help documents. In fact, the documentation is better from the included help IMHO; the problem is navigating the help files is about as intuitive as using info (which I think is about the least intuitive document navigation system ever produced).

    I have learned a lot about ViM from browsing the book, though, so I can't totally trash the book. I just think there's lots of room for improvement.

  109. silly /. moderators ... :P by Jucius+Maximus · · Score: 2
    This is precious:

    EMACS 0WNZ VI (Score:1, Flamebait)
    by The Pi-Guy (wiseguy586@@@yahoo...com)

    NO, VI 0WNZ EMACS (Score:1, Funny)
    by The Pi-Guy (wiseguy586@@@yahoo...com)

    Only on slashdot ...

    1. Re:silly /. moderators ... :P by Anonymous Coward · · Score: 0
      "emacs 0wnz vi" is true, but flamebait nevertheless.

      "vi 0wnz emacs" is correctly moderated as laughable.

    2. Re:silly /. moderators ... :P by ItsBacon · · Score: 0
      But wait, it gets better...


      NO, VI 0WNZ EMACS (Score 2, Informative)
      by The Pi-Guy (wiseguy586@@@yahoo...com)

    3. Re:silly /. moderators ... :P by tpv · · Score: 1
      EMACS 0WNZ VI
      by The Pi-Guy on 22/08/02 1:34 (Score:4, Funny)

      NO, VI 0WNZ EMACS
      by The Pi-Guy on 22/08/02 1:39 (Score:4, Informative)

      Sounds about right to me :)

      --
      Read more of this story at Slashdot.Read more of this story at Slashdot.Read more of this story at Slashdot.
  110. what's an improved VI? by Anonymous Coward · · Score: 0

    To really improve vi you have to remove everything that makes vi vi, especially that dreaded and obsolete command/editing mode switching. Thus you could call emacs an improved vi as well.

  111. for you Python programmers... by kdart · · Score: 2, Interesting

    Vim also can embed a Python interpreter (and perl too.. but... ). I have spent a little time setting up Vim to be the centerpiece of a Python IDE. If anyone is interested in my stuff send me an email. Perhaps we can exploit the built-in Python even further to make it even better. Who knows... perhaps a Python-zippy for Vim is just around the corner...

    --

    --
    The early bird catches the worm. The worm that sleeps late lives to see another day.
    1. Re:for you Python programmers... by Anonymous Coward · · Score: 0

      and Tcl ...

  112. only need to know vimtutorial by dcstimm · · Score: 1

    you only need vimtutorual and :q! and :wq and know that esc can get you into command mode and i will insert text. simple..

  113. Ok, been trying to figure this out for awhile... by Dalroth · · Score: 2

    How do I mark a section of text (say lines 20->25) and then automatically indent them 5 tab spaces (or maybe take a tab space out of the beginning)?

    Bryan

  114. My age is showing by dajt · · Score: 1

    The first time I heard that, I was with the (then) current maintainer for GNU Emacs. Who muttered "But it's only six". . .

    --
    Geez. Fifteen years and we still haven't taken over the world.
    1. Re:My age is showing by Dahan · · Score: 2

      I first heard it when it was Eight Megabytes, rather than Eighty. (Althought it was past the time when 8MB was considered a huge amount of RAM... I was using SPARCstation 1+s with 12 to 16MB of RAM.)

  115. Re:Ok, been trying to figure this out for awhile.. by Zenki · · Score: 1

    Take advantage of the shift width operator

    Set the shift width to some arbitrary size, but usually it helps to set it to the same size as your tab stop.

    Move to the line at the beginning of the block you wish to indent. "20G"

    Tell you want to shift the next five lines "5>>", where >> tells vi to indent by a shift width and tells vi to remove a shift width

    Repeat as many times as necessary "...."

  116. Re:Ok, been trying to figure this out for awhile.. by Anonymous Coward · · Score: 0


    Indent specified lines (if you want real tabs set shiftwidth & expandtabs appropriately) :20,25>>>>>

    Remove one level of indentation :20,25 or as appropriate

  117. Re:Ok, been trying to figure this out for awhile.. by Anonymous Coward · · Score: 0

    Another attempt with hopefully correct formatting

    :20,25>>>>>
    :20,25<

  118. Re:Ok, been trying to figure this out for awhile.. by pne · · Score: 2

    You may be looking for :20,25>>>>> . Or if you don't know the exact line numbers, move to the last line, mark it 'a' with ma, move to the first line, and then :.,'a>>>>> . This will move the lines over by five times the "shiftwidth". (How many columns this is and whether you get tabs or spaces depends upon, among other things, the shiftwidth, tabsize, expandtabs and smarttabs settings.)

    --
    Esli epei etot cumprenan, shris soa Sfaha.
  119. Vi and Emacs are dead! by qazwsx · · Score: 1

    Sorry folks, but at the speed that kdevelop and anjuta are going I would say that this holly war is probably going to an unexpected end...
    Thank god! :-)

  120. 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.
  121. Re:Pointless by Carpathius · · Score: 1

    This is supposed to be hard?

    Heck, I used to program using ed. You get real good at doing things like:

    -17,.p

    to see the current page.

    Guess I'm a Unix "old-timer", though I'm not sure I like the designation. The first Unix I worked on didn't come with vi. When Berkeley 2.9 (for PDPs) came along a year later and had vi, it was great -- as long as there were only one or two people on the system. Any more than that and it got really slow...

    And I've got a friend who *refused* to learn vi. Said he was as quick with ed as others were with vi. He was probably right, but the guys at Bell Labs held him down and forced him to learn vi eventually.

    Sean.

  122. Re:Ok, been trying to figure this out for awhile.. by MrDog · · Score: 1

    Off the top of my head (this should approximately work) mark the selection with V, then do :perldo s/^/\t\t\t\t\t/

  123. Re:Holy War by LMCBoy · · Score: 1

    Ok, you guys posted three different ways to do a string replace in vi...each some cryptic variation on the standard regexp. Thanks for reminding me why I like emacs! :p

    --
    Liberal (adj.): Free from bigotry; open to progress; tolerant of others.
  124. Re:Vi and Emacs are dead! HAH!!! by swordgeek · · Score: 2

    Well, I'm CERTAINLY glad to hear that!!!

    So when, exactly, is kdevelop going to appear in base installs of Solaris, AIX, HP-UX, FreeBSD, IRIX, and so on?

    And how are we going to magically back-implement them to all of the older platforms that are already installed?

    Oh, not to mention make them available for a minimally-running system, being accessed from a remote VT-102?

    Oh, silly me--kdevelop and anjuta are IDEs! vi(m) is a text editor, last time I checked. As a text editor, it's still got some life in it.

    Emacs, as an editor or an IDE, also isn't quite dead yet. However, it's dying--I don't expect it to hang on for much more than 15 more years. :-)

    --

    "People who do stupid things with hazardous materials often die." -- Jim Davidson on alt.folklore.urban
  125. Re:Holy War by Narchie+Troll · · Score: 1

    They also do different things, you know.

  126. VI sucks. by Anonymous Coward · · Score: 0

    Vi is evil and cannot be redeemed. Vim is just Satan wearing a brand new hat.

    All right-thinking people agree: Emacs is the One True Editor.

  127. Vanilla Vi by Anonymous Coward · · Score: 0

    Vi Vi Baby...

  128. I'm a vim fan, but... by fm6 · · Score: 2
    Oh, before I start my rant, a reminder: Vim is charityware, and the charity is a very good one. If even a fraction of Vim users did the right thing, it'd make a big difference in the world. Used to be a pain to transfer, but now Bram has a PayPal account, so there's no excuse.

    Ok, rant time. I'm big Vim fan. Every computer I own or use (well, every working computer) has it installed. The only editor that approaches EMACS's feature set, and nowhere near the great bloatware's klunkiness or unpredictability. But.

    I'm rather disappointed that EMACS and Vi (and its clones, of which Vim is the best and mostly widely used) remain the most widely used text editors. Now each has strengths and weaknesses relative to the other, and it's no use rehashing those wars here. What's important is that both these editors are designed around constraints that are about 20 years out of date. Most especially, they were designed to be used by a text-mode terminal (very fancy ones, in the case of EMACS, very limited ones in the case of vi) over a relatively slow connection.

    I won't comment on EMACS, since I lack the obsessiveness to be a serious user. But on vi, the big design decision was to build in a lot of modes to get around the limitations of the terminal. This allowed a lot of commands without function keys or complicated keystrokes. It also allowed the user to enter blocks of text without realtime update -- an essential feature on a 300 baud connection!

    But, in a GUI environment, modes are a Bad Thing. Yeah yeah, some of you like being able to do complicated edits without moving your hands off the keyboard to grab the mouse. But most people have an easier time if they don't have to keep a state map current in their head.

    Now Vim has impressive GUI support (platform-independent GUI support, which is the main reason I use it), but it still has all the modes of vi, plus 3 or 4 of its own. And its macro language is a kludgy extension of the simple-minded command language Bill Joy invented for the original ex/vi editor, itself a minor extension of the ed command language.

    Various projects have tried to do all this over using modern design principles, but the EMACS and Vi user communities are just too entrenched. If I were a better programmer, I'd try it myself, maybe using the vim engine as a basis. But probably I'd be the only user!

    1. Re:I'm a vim fan, but... by ClosedSource · · Score: 1

      "What's important is that both these editors are designed around constraints that are about 20 years out of date."

      I agree with you, but this is really the story for Unix, C, etc. Programmers are really pretty hidebound as a group. Look at the new languages that come out. Even though they may not be compatible with C they have to have at least some subset of C syntax. Nobody would put junk like a "op=" operator in a language today if hadn't been in C. It was designed to save keystrokes (which was important back then), and to help the dumb C compiler to optimize. As explained in K&R, the original syntax was "=op" (which is more intuitive) but that form created problems for the compiler (Had Ritchie held a design review before coding, perhaps this would have been discovered earlier).

  129. Why is this flamebait by Anonymous Coward · · Score: 0

    The parent post was the single most intelligent post on this thread.

  130. Re:Ok, been trying to figure this out for awhile.. by Schemer · · Score: 2

    take lines 20-25 and indent 5 tabs:
    20G5>>....

    take lines 20-25 and remove one tab:
    20G5

    hope that's what you were looking for

    --
    A buddhist walks up to a hot dog stand and says ``Make me one with everything.''
  131. Solaris Vim by fm6 · · Score: 2
    When I was a Solaris user, I had no trouble getting vim working. Download the source, ./configure, make. Then add the executable to your path.

    One trick: some Motif programs (notably Netscape) have bad palette manners and grab a lot of colors they don't even need. I would always have at least one copy of gvim running so it always had the palette colors it needed.

  132. Re:Ok, been trying to figure this out for awhile.. by Schemer · · Score: 2

    D'oh. That second one should have been
    20G5<<

    --
    A buddhist walks up to a hot dog stand and says ``Make me one with everything.''
  133. Re:Pointless by caca_phony · · Score: 1

    amen, brother, ed is a godsend.

    --
    ...and this lie crawls out of its mouth: 'I, the state, am the people.'
  134. Disk Hog by Anonymous Coward · · Score: 0

    I bought a 40 gig HD for $79 last week.

  135. Re:Vi and Emacs are dead! HAH!!! by qazwsx · · Score: 1

    I am a VI guy. I have been working with it (vim and elvis nowadays) for more than 10 years and never complained one bit. People here at work usually get really impressed with thing I can do with it. :-)
    BUT... today I have made an "apt-get install anjunta" and got really impressed. Take a look...
    And, please, don't get me wrong: I was half joking in my last post... :-)

  136. Elvis: (was Re:Cleans and polishes code!!) by leviramsey · · Score: 1

    ...the editor with "a little less conversation..."

  137. *yeah right* by Saib0t · · Score: 3, Interesting
    The editor that comes with MSVC is usable without a book. What can VI/VIM do that it can't?

    Easy: I can't run the MSVC editor from an SSH session.
    The thing is, for the MSVC editor, all the commands are "hidden" in menus you reach with the mouse, and the keyboard shortcuts associated with them. vi just has different shortcuts.

    If you don't like vi, just use a different editor. Just use what you like best, like all of us do. I don't like vi, I use joe, jed, pico or emacs. Do I complain that vi sucks? No, because it doesn't. It just doesn't fit the way I do editing.

    --

    One shall speak only if what one has to say is more beautiful than silence
    1. Re:*yeah right* by istartedi · · Score: 2

      Do I complain that vi sucks? No, because it doesn't. It just doesn't fit the way I do editing.

      I don't spend a great deal of time complaining about it either, except when some snob comes down on me for not liking it. We're on the same page here; as I said I "route around it". Also, thank-you for being one of the few respondants who didn't employ some kind of ad hominem attack.

      --
      For all intensive purposes, "whom" is no longer a word. That begs the question, "who cares"?
  138. Re:Vi and Emacs are dead! HAH!!! by swordgeek · · Score: 2

    Heh. Well I'm a sysadmin and maintenance analyst, which means I get called in to work on an unknown system which is braindamaged. Since they're usually big servers, they almost never have framebuffers, meaning I'm usually stuck with a terminal session, or in a surprising number of cases, a real, honest, hardwired VT-102. (rarely a VT-52, sometimes a VT-420)

    vi is always there, and always works. Since it is massively useful, consistent across the Unix universe (more or less :-), and is all I need (I'm not a developer), I can't be bothered with a proper IDE.

    --

    "People who do stupid things with hazardous materials often die." -- Jim Davidson on alt.folklore.urban
  139. God was last by Anonymous Coward · · Score: 0

    Dogs were around long before mythology

  140. Re:Holy War by LMCBoy · · Score: 1

    Yeah, I figured...I was j/k. I have nothing but respect for you vi guys, really. Whenever I use it, it makes me want to hurl heavy objects at my computer, but I've seen what it can do in the hands of One Who Knows.

    --
    Liberal (adj.): Free from bigotry; open to progress; tolerant of others.
  141. buggy whips by Anonymous Coward · · Score: 0

    There are subtle differences in buggy whips, so it's good to have a book that helps you make the transition from one whip to the next.

  142. Bad book--Surprise! by Fujisawa+Sensei · · Score: 1

    Of course its a bad book, have you read any of the authors books?

    Practical C++ Programming Is one of the worst O'Reilly and Associates has ever published. Here's part of a review from Amazon.com:

    But not only does this book not deal with the features of the language that it should, but the material it *does* deal with is presented in an inexcusably poor way. It's clear that Oualline really doesn't know C++, or he would use inheritance correctly---hell, he would declare main() correctly!

    Then there's the company: New Riders

    Java 2 Certification Training Guide by Jamie Jaworski. Use this book and you're guarenteed to fail the test.

    As for me I've been bitten once by the author, and I don't give second chances, there are plenty of good books out there, so I really don't need him. I use gvim nearly every day, and I have Learning the vi Editor, by Linda Lamb (5th Edition), in case I forget something. For the rest I have vim.org

    As for me, I don't need another doorstop.

    --
    If someone is passing you on the right, you are an asshole for driving in the wrong lane.
  143. IMproved NOT by KidSock · · Score: 2

    One thing that annoys me to no end is when I install the latest version and by default some new silly screwball "IMprovement" is activated.

    Like the time line numbers (:set nu) have lines under them. You have to turn that off with (hi LineNr term=bold).

    In the latest release (from RH actually) they put visual line breaks (not real newlines) in lines that are longer than the terminal is wide so that it doesn't print text in the left margin. Supposed to look nice I guess. Not only is that just a silly worthless feature but now if I select a line in X with the mouse and paste it somewhere I get stairstepping text.

    I think their stuggling for new ideas. I wish they would clean up that morass and make a nice X widget instead.

  144. the one and true text creation method... by roberto0 · · Score: 1


    cat >
    ...
    ^d

    not for the weak of heart!

    --
    Those who can, do. Those who can't, simulate.
    1. Re:the one and true text creation method... by invenustus · · Score: 1

      Or its DOS equivalent, COPY CON:

      For a 9-year-old with shitty eye-hand coordination, that was a rough experience. I can't remember now what book or magazine had me doing that, I just remember hating it. I mean, my dad had replaced the typewriter with a computer for a REASON.

      --
      grep -ri 'should work' /usr/src/linux | wc -l
  145. STFU! VI 0WNZ EMACS! by Anonymous Coward · · Score: 0
    • Emacs - Eighty Megabytes And Constantly Swapping
    • Emacs - Extremely Malevolent Arse Cleaning Solution
    • Emacs - Escape Meta Alt Control Shift

    What kind of text editor requires 96egabytes of disk space? (no shitting!)

    A wise man once said, "Emacs is a nice operating system, but I prefer Linux." Truer words have never been spoken.

    To exit, you have to press three different keys! In vi, you only have to press...er...er...three!

    EMACS SUX0R5!!!!11!!

    1. Re:STFU! VI 0WNZ EMACS! by Anonymous Coward · · Score: 0

      Nope, two. [SHIFT]ZZ will save and exit. Technically three, but closer to two.

  146. This is among the best technical books on my shelf by Starky · · Score: 1

    This book was well-researched and very well written. The layout and explication are first-rate. Subjects are easy to find and it's chock full of well-explained tips and tricks. I highly recommend it as one of the best technical books on my bookshelf.

    If you pick up a copy, even if you're an experienced vi user, you'll find that you start thumbing through it on a regular basis even when you're not looking for something specific. If you're a vim user, you will be in heaven. And perhaps the best testament, whenever I bring it into work, it doesn't take long to disappear from my desk.

    I use both emacs and vi on a regular basis depending on what and where I'm working and am very fascile on both. I switched from being a part-time vi user to a most-of-the-time vim user after reading this book.

    Trust me. If you want either a vi or a vim book, you won't go wrong with this one.

    --
    -- My choice of computing platform is a symbol of my individuality and belief in personal freedom.
  147. disabling Vim 'features' on Mandrake by Anonymous Coward · · Score: 0

    This Vim Slashdot topic is extremely timely for me.

    It took over an hour today for me to discover how to disable fucking autoindent on Mandrake.
    Setting "noai, nosi, nocindent" in my ~/.vimrc was not good enough - I had to erase /usr/share/vim/vimrc and /usr/share/vim/filetype.vim because they had precendence over your home directory directives. Now that's stupid!

    While you're at it on Mandrake you can disable the God-awful tty colors for ls by adding this to your ~/.bashrc: `unalias ls'

  148. why would anyone want vim? by Anonymous Coward · · Score: 0

    If you cant wield vi then you suck. And if you want more features than vi then you suck and you should go to emacs. If you want colors then you really suck. Real men and women just use vi.

  149. gvim by jbolden · · Score: 1

    Windows gvim has also gotten quite good.

  150. The best... by Anonymous Coward · · Score: 0

    Man. All you guys are smoking crack. It's quite obvious that notepad is the best simple text editor. Who the fuck wants all this other bullshit? Vi is fucking impossible to use and Emacs...what the fuck??

  151. ? for vim gurus by Anonymous Coward · · Score: 0

    I have my .vimrc set with tabstop=4 and shiftwidth=4 and that's what I use most of the time (for writting code). But when I write emails and plain text files, I want the standard 8-character tabs instead. Is there a way to setup a macro for this or something? Right now I just type "set tabstop=8" all the time, but I'm sure there's probably a way to automate this...
    Along the same lines, is there a way to automatically get rid of autoindent (which I use for coding, but isn't terribly useful otherwise)?

  152. Re: LS is an abbreviation for what? by some+guy+I+know · · Score: 1

    LS - LiSt
    MV - MoVe
    CP - CoPy
    LN - LiNk

    See a pattern?

    --
    Those who sacrifice security to condemn liberty deserve to repeat history or something. - Benjamin Santayana
  153. Notepad kicks Edit's ass! by Anonymous Coward · · Score: 0

    nothing more to say...

  154. vim book is better by Anonymous Coward · · Score: 0

    I have both books, but did not convert to VIM for all my editing until after getting the VIM book. The Oreilly vi book is OK, but it wastes chapters worth of space by devoting attention to vi clones that very few people use.

  155. Re:Holy War by Billly+Gates · · Score: 2

    I hate to bust your bubble but regexp is quite standard for any text search. If you ever leave emacs and do some real work with perl or bash scripting with awk and sed, then regexp knowledge is quite usefull. I consider it a standard actually and it shows me how standards compliant gvim is.

  156. Vim and MySQL by Christoph · · Score: 1

    I use Vim to edit content from a MySQL
    database with the help of a vim script I've posted here:

    http://www.phototour.minneapolis.mn.us/pages.vim.t xt

    :Edit page_name edits a
    webpage stored in a database table, and

    :Save re-saves it.

  157. Re:Holy War by LMCBoy · · Score: 1

    No worries, my bubble was already busted. If you notice, I refer to regexp as "standard" in my post. Thanks for the condescension though! :)

    --
    Liberal (adj.): Free from bigotry; open to progress; tolerant of others.
  158. Re:Yeah but in reality shouldn't vim be called Ema by Billly+Gates · · Score: 2

    I thought it stood for "Eighty megs and constantly swapping".

  159. OOps.... by BigBadBri · · Score: 0

    As a 37 yr old, I still find myself doing 'copy con ...' for batch files under Windoze - I know what I want to type, and I'm quite capable of typing it....

    Similarly under *nix - gimme vi - it's quick, simple, and so long as you know what you want to say, it's good enough.

    For programming use an IDE, for quick hacks use a text / hex editor.

    KISS - the mantra of the lazy.

    --
    oh brave new world, that has such people in it!
    1. Re:OOps.... by whereiswaldo · · Score: 1

      Wish I knew why KEdit/KWrite/Kate are all so slow to load up. Windows' Notepad starts in a jiffy. So what gives?! If it's something that simply needs to be optimized, I'd be glad to help as I use KWrite every day. vi is the text mode editor I use.

  160. They lied by tpv · · Score: 1
    People say I'm a little weird.

    They lied.
    You're very weird.

    --
    Read more of this story at Slashdot.Read more of this story at Slashdot.Read more of this story at Slashdot.
  161. cheapest I've found by brad3378 · · Score: 2

    $25.00 plus shipping (coverprice is $49.99)

    http://www.addall.com/

    remember to copy & paste the
    ISBN 0735710015

    --

  162. ermmm... by BigBadBri · · Score: 0

    There is a windoze vi - I used it for a while while I was converting (dumbing down?) to Windoze from HPUX a long while back, since it was easier than trying to point the damned mouse at the right bit of screen.

    The trick is - unplug the goddamn mouse. You the have to alt-tab twixt windows to change focus, and you aren't likely to hit alt-tab in a vi session.

    Trouble is - it doesn't work on laptops with built-in pads and shit - you still get the problem.

    LOL, ROFLMAO etc... edlin still works in Windoze....

    --
    oh brave new world, that has such people in it!
  163. Hell! That's neat! by BigBadBri · · Score: 0

    It looks a lot smaller that the vi reference I used to carry about 12 years back - looks like this minaturisation shit is working...

    --
    oh brave new world, that has such people in it!
  164. Re: LS is an abbreviation for what? by spudnic · · Score: 2

    Yes, I know, and that's the explanation I've seen for the names many times. However, I swear I heard mention that there was more to ls than the rest of them... that it was actually the authors initials. It must have been 5 or 6 years ago that I heard this and haven't seen any mention of it since.

    I was starting to doubt that I had heard it at all when I saw the parent post saying the same thing. It's too big of a coincidence to just write off. Somebody else must have heard the same thing I did.

    If anyone can corroborate that there is more to the naming of ls than simply LiSt, please let me know!

    Thanks

    --
    load "linux",8,1
  165. You Fucking Star by BigBadBri · · Score: 0

    hope you get modded up - arrogant bloody sysadmins need putting down.

    I like sendmail, cause it sends mail. I don't give a fuck about how it handles regexes - if I want to proces regexes, I use sed.

    If I want to edit a text file (or a source file where I know all the classes and methods), I'll use vi. If not, I'll use an IDE for the purpose.

    EMACS can go hang (unless I'm using Scheme, in which case it is the IDE).

    --
    oh brave new world, that has such people in it!
  166. Re:disabling Vim 'features' on Mandrake by Zagadka · · Score: 1

    Are you running gvim? I know some versions of RedHat have a problem where /usr/share/vim/gvimrc is a symlink to /usr/share/vim/vimrc. This causes anything in /usr/share/vim/vimrc to override your .vimrc if you're running gvim, because gvim runs: /usr/share/vim/vimrc
    ~/.vimrc /usr/share/vim/gvimrc
    ~/.gvimrc

    (in that order) Perhaps Mandrake has the same packaging problem.

  167. Re: LS is an abbreviation for what? by Anonymous Coward · · Score: 0

    Well I can say for sure that ln was writtend by a guy called Larry Niven

  168. man vimtutor by SystematicPsycho · · Score: 1

    It surprises me how many times ppl go off on net searches to find out something when the documentation was right on there hard disk

    --
    Analytic & algebraic topology of locally Euclidean meterization of infinitely differentiable Riemmanian manifold
  169. Re:disabling Vim 'features' on Mandrake by RisingSon · · Score: 1
    I had to erase/usr/share/vim/vimrc and/usr/share/vim/filetype.vim because they had precendence over your home directory directives.

    Yikes, that is pretty bad. I use debian mostly (in about a week, I will be 100% debian at work and home). The vim packager for debian (Wichert Akkerman I believe) does a great job. Most of the stuff is turned off by default - I've been turning on the features as I expore the depths of vim.

    The fluff I do like on is cindent, showcmd, showmatch, autowrite and incsearch. However, I'm glad these are not on by default in debian and they can be easily turned on via ~/.vimrc

  170. Bilo and Nano are never wrong by Anonymous Coward · · Score: 0

    Check this comic strip.

  171. What can VIM do that Emacs cannot? by axxackall · · Score: 1
    children in Uganda

    This the only thing I still cannot find in Emacs. But I'll keep trying, it must be mentioned somewhere in *info* ...

    --

    Less is more !
  172. Almost every Emacs user also runs vi... by axxackall · · Score: 1

    ... at least (and mostly at most) one time: write after the system installation is completed to edit Makefile or some just in order to comile Emacs or Xemacs. Right after that - Emacs (or Xemacs) forever.

    --

    Less is more !
  173. Re:vi vs emacs: dev vs adm by axxackall · · Score: 1
    most programmers ...

    That was a key phrase. Most of programmers (open-source ones) love Emacs. Most of admins love Vi. The reason? Different tasks, a different style of thinking, sometimes even a different education.

    --

    Less is more !
  174. For completeness, here's what I'd do in vim... by daveman_1 · · Score: 1

    /functionName - jumps me to the function

    shift-v - enter "visual" mode

    select to opening brace

    press % - finds the matching closing brace for the function

    press d - deletes the function

    --
    Russian Russian Russian RussianDollSig DollSig DollSig DollSig
    1. Re:For completeness, here's what I'd do in vim... by BleedTheFreak · · Score: 1

      Ah, I'd forgotten about '%' jumping to the matching brace. However, this "visual mode" rubbish in vim doesn't help - what if the starting brace is not at a character further right than the longest line in the function? The *correct* answer, without resorting to vimisms, is to go to either brace, and type 'd%'. Tada! And it works for any block. I think the point about any Microsoft "editor" being lam0r is well and truly proved, though ...

  175. Good points by crush · · Score: 2

    But have you never worked in a situation where you were one of several other junior sysadmins and not everyone else was as careful as yourself? Training people to use vipw and vigr is very useful in certain situations.

    Also I don't really get your CVS vs RCS style locking point. Care to expand?

  176. negative by bcaulf · · Score: 1

    ITS was built not in Lisp but assembly. That's why ITS isn't available on current hardware. Ref. Steven Levy's _Hackers_. It is, however, true that versions of emacs were the standard editors on many different Lisp based systems.

    1. Re:negative by Anonymous Coward · · Score: 0

      how come vi were not the standard editors on many different Lisp-based systems?

    2. Re:negative by bcaulf · · Score: 1

      Your question is inadequate; please restate.