I was a vim user for a long time but recently I decided to try emacs a try. Now I think I'm going to keep it. Why is that?
I found myself having vim open for long periods of time, whether it was just the convenience of having a text editor open for random notes, or writing code for long periods of time. I would have my editor open for days on end. Vim, I thought, restricted me somewhat. I had to have multiple windows open: one for vim, one to run my apps, and perhaps another for miscellaneous things. Vim does have good support for buffers, but to really use it like I wanted involved downloading a plugin script for it.
I was pondering these things while reading *The Art of Unix Programming* by Eric Raymond. In it, Raymond makes a great case for using emacs. Though his standpoint is greatly biased, he makes a great point: emacs is written to be by programmers, for programmers. It's written to stay in all day long, with minimum cruft. Vim is trying to get that way, but it obviously isn't there yet. Any why shouldn't I use the original?
I gritted my teeth at this decision -- I've been a loyal vim user since I've started using Unix (which has been all of my professional life, as well as college). Plus I have many tweaks and configurations that I am used to. Am I willing to throw this all away for something with a totally different mindset?
I tend to learn through total immersion, so I needed to use emacs for a while, like a week, before I made a decision on what I should be using. I installed GNU Emacs on my personal Linux box and start going through online tutorials. I found myself hitting ESC a lot, as well as hitting '/' when trying to do a search. Other than that, I liked what I found -- modeless editing was cool, and does feel more natural. Having a shell prompt in a buffer is also nice, and is especially convenient when you need to grab output from there into the file you are editing. I soon installed XEmacs on my Windows machine at work, and began using that for my editing tasks. Most of my days is spent pondering over Python code, and emacs's Python mode is very, very good -- it automatically finds the class names, function, etc. and puts them up in the menu, as well as functions for indentation. You can even use the Python interpreter inside an emacs buffer! Very handy when you are experimenting -- just copy the code from the interpreter to your script!
Then I found other little toys in emacs that I didn't know were there. Like M-x ispell-buffer spell checks buffer inside emacs! Vimspell is nice, but not as nice that that. And it's standard in emacs, as opposed to "yet another macro to install when using a new system" like vimspell would be.
So now I'm hooked. I will be using emacs now for all my major projects, and some of my minor ones. I am by no means 100% comfortable with emacs -- I still look at my quick reference card, but I'm just starting out. If you need a change of pace, come aboard!
More Articles by Mike Hostetler

/Hostetler/mikehwhyemacs.html copyright January 2004 Mike Hostetler All Rights Reserved
Have you tried Searching this site?
Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.
Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.
Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.
We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.
Click here to add your comments
Don't miss responses! Subscribe to Comments by RSS or by Email
Click here to add your comments
If you want a picture to show with your comment, go get a Gravatar