Getting Vi To Work Again Under iTerm
When I run vi within iTerm, the arrow keys don't seem to work (wrong scan codes being sent?)
Solution
create file ~/.vimrc
set term=linux
Explanation
The default termcap on Mac OS X specifies that applications should enter application-specific cursor mode when capturing the display. iTerm is faithfully sending the application-mode sequences, but most terminal emulators just ignore the app-mode escape sequences and send normal key sequences instead.
page revision: 1, last edited: 16 Oct 2007 23:20