search | site map

Scott Granneman

panorama-039.jpg
  • Writing
    • Books
    • SecurityFocus
    • Linux Magazine
    • Others
    • Swings & Misses
  • Presentations
    • Interviews
    • Ladue Chapel
  • Teaching
    • Current Courses
    • Student Evaluations
    • Washington University
    • Webster University
    • St. Louis Community College
    • Archives
  • Web Development
    • Becoming a Web Developer
    • Coding
    • Programming
    • Editors
    • Web Browsers
    • Domains
    • Hosting
    • Graphics & Multimedia
    • Content
  • Tech Info
    • Background
    • Tools
    • Intellectual Property
    • Security
    • Email
    • Networking
    • Blogs, Podcasts, RSS
    • Search
    • Linux
    • Windows
    • Education
  • Personal
    • Work
    • Movies
    • Music
    • Reading
    • Poetry
    • Prose
    • Photos
    • Journals
    • Commonplace Book
    • Our Home
    • Opinions & Editorials
Home > Web Development > Editors > vim

Why Choose vim?

I don't want to get into the emacs/vim war, but I think vim would be better here than emacs.

For a general text editor, I'd recommend vim over emacs. I used to use emacs, but there were problems with it. In particular, macros & aliases were complicated to set up & use, & impossible to edit (unless you know lisp). In fact, the emacs guides state clearly that if you wish to create a macro or script to automate something, you should let emacs record your actions & then name the script. The actual process for doing this I found cumbersome—I had to look up documentation every single time I wanted to do it—and then, if you wish to edit the script, your only recourse it to re-enact the process so that it is re-recorded! I found this inefficient.

vim has these advantages:

  • Found on every Unix & Linux machine, always. When you need to boot into failsafe mode & edit text files, you know vi (or vim) will be there. You can't guarantee that with emacs.
  • Smaller footprint than emacs.
  • Much easier to set up abbreviations (so that you type sem, for instance, & scott@granneman.com comes out) & mapping (similar, but with commands).
  • Much easier to create scripts—you just type out the ed commands, save the file, & reference it. Want to change them? Edit the file & save it.

vim does have this disadvantage:

  • The 2 separate modes (editing and command) can be a bit confusing at 1st, but you'll quickly overcome that.

On the whole, I just find vim easier to work with & do what I want it to do. If you're a lisp programmer, or someone who likes the 'everything & the kitchen sink' approach of emacs, then go for emacs. Otherwise, I'd look at vim.

http://www.vim.org

vim is available for *nix, Mac OS X, & Windows. There are lots of vimrc files out there that you can learn from & copy. If you'd like mine—not that it's brilliant or anything, but it would be a start—let me know.

Contact

Email scott@granneman.com
Voice 314-780-0489
Address
39 Summit Place
St. Louis, MO 63119
United States

Work

For work info, see WebSanity.

All content, unless under a Creative Commons license, is © 1997-2011 Scott Granneman.

(Take a look around—a lot of content is licensed under a Creative Commons license, which gives YOU a lot of freedom to reuse my work.)

facebook_32.png Facebook   twitter_32.png Twitter
linkedin_32.png LinkedIn   friendfeed_32.png FriendFeed
flickr_32.png Flickr   lastfm_32.png Last.fm
youtube_32.png YouTube   rss_32.png RSS