Using A Cross Platform Text Editor (Emacs Vs Vim)
31 Aug
I have been dissatisfied with my text editor choices for a while now. I
use a Windows 7 PC at work and a Mac at home along with doing some work
on my Linux VPS. I have using Notepad++ on Windows for a long time but
it do editing remote files very well. I bought a Textmate license for
the Mac several years ago but I don’t actually use it enough to get the
benefits out of it that I could. Editing files on my VPS has pretty much
necessitated using either Emacs or Vim. There have been a lot of Rails
people discovering Vim lately and blogging about it.
During college I had a job where I worked as a document typesetter using
LaTeX on a LINUX terminal. I spent my time working on plain text in a
text editor and I learned both Vim and Emacs during this time so I have
experience with both of the big text editors. I have used Vim for years
to do quick edits to config files and small text files on LINUX
servers. Since Vim has been getting so much hype lately I thought I
would start out with it. I downloaded the Windows GVim package and I
found a nice Vim Rails oriented config setup on github and I used it for
a week. I just couldn’t get comfortable using Vim for more than quick
edits. Customizing Vim is not easy and or intuitive at all. I really
don’t care for the way tabs are implemented in Vim. Vim makes it to much
effort to switch to another tab. I guess I have been spoiled by editors
with modern tab implementations. So I decided I would try Emacs next.
I downloaded the latest release of Emacs for Windows and the Emacs
starter-kit from github. Although both Emacs and Vim are a little more
difficult to configure on Windows than they should be I got up and
running. It is fairly easy to configure Emacs to act like a standard
editor on the Windows platform by doing a few things. I CUA mode which
makes Ctrl-X/C/V have the standard Windows application meaning of
Cut/Copy/Paste. I also found a nice package that enables file tabs in
Emacs and Ctrl-Tab and Shift-Ctrl-Tab navigation between them. I have
been keeping a copy of my .emacs.d directory on Dropbox for syncing
between my Windows PC and my Mac. By putting in a little time you can
get Emacs to behave the way you want your text editor to behave.

