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?)


create file ~/.vimrc

set term=linux


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.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License