Monday, September 3, 2007

vi Command Line

If you ever spent any quality time in the vi editor, you can't shake off at least some of the keyboard stuff. Of course, vi isn't the friendliest editor in the world (in fact, may in fact be the least tameable). But it is probably the most efficient mechanism for editing single lines of text.

Which brings me to this tip: you can turn on vi keyboard shortcuts for your terminal (either Terminal or iTerm) by adding the following line to your ~/.profile file:
set -o vi
Now, you can happily use that vi knowledge that you can't get rid of otherwise. If you're muscles  can't remember the keystrokes, you can refresh your memory here.