Linux.com

Re:Why Vim?

Posted by: Anonymous Coward on January 25, 2007 10:12 AM

So, vim just made tabs? Tabs in text editors existed for over 5 years at least on the various editors I've been using on Windows. And why do I need to type all those ':tabXXX' kind of commands to just move in and out of tab and run a search?

What I do on Windows, I press 'Ctrl+h' and open search/replace window, directly type the strings in there without the '%s<nobr> <wbr></nobr>/' etc annoying symbols with quite many extra keystrokes with Ctrl and sounds more intuitive by just pressing a single sequence of shortcut to start typing the word you want to replace.

Also, I haven't felt either that with or without mouse is better for text editing, as I'd like to take some time to actually start typing my code after looking through at the various part of my code with my mouse wheel scrolling, instead of having the necessity to keep my hand on keyboard all the time for endless typing. I can help to have my hands to relax off keyboard from time to time.

All I wanted to say is... why is Vim so cheered? I've been editing code for nearly 8 years or so (and using Unix for about 5 years) while using vim here and there (I finally had a 2 weeks project entirely typed by vim recently) for a couple of years, but never ever really liked it, except that when editing config files on Unix, that's the best there is probably, because shell text editing won't allow a decent use of mouse through putty.

Ok. I'm only 25 years old and grew up starting from Windows while still using Windows as main machine, but I just find it odd that I never can like vim (or emacs for that matter) that if it's any better than Windows text editing with mouse.


Here is why Vim is "better"

What I want you to try and do in Word, Notepad, or Wordpad is this:

Replace every instance of a phone number in the format 555-555-5555 with (555)-555-5555 but keep the phone numbers intact (i.e. 555-555-5555 would be an actual number)

You will find that it is rather difficult to do. It gets even worse if you want to just do that at the beginning of a line. No Microsoft application to date for word processing supports a regular expression in an easy to use manner (you have to go into writing VBA scripts.)

In Vim it is easy

To date I've used GVIM for the better part of 2 years now. Hell of a hard time starting out but after the first month and to this very day, it gets just a little easier

#

Return to Vim tips: Using tabs