From Newsgroup: comp.sys.mac.system
In article
<
1145306534.465082.318700@z34g2000cwc.googlegroups.com>,
"Steven Fisher" <
sdfisher@spamcop.net> wrote:
When I hit an arrow key in insert mode with the system installed vim
6.2, it works correctly. When I do the same with the fink-installed vim
6.3, it seems to be typing some elaborate sequence (that doesn't work).
Any ideas what I'm missing to make fink's vim behave?
Check the terminal that Vim thinks it has
:set term?
The Apple provided Vim may have a built-in default terminal
definition that the fink version is missing.
or the term is one in the terminfo database that does not have
correct definitions for the arrow key escape sequences send by the
terminal.
My TERM environment variable is set to xterm-16color which seems
to work nicely for me.
And I use iTerm 0.80 <
http://iterm.sf.net> mostly because it has
tabbed windows, but I also think it does a few things better than Terminal.app.
Also when I was using Terminal.app, I modified my arrow key
definitions in
Terminal -> Window Settings... menu -> Keyboard
setting:
cursor down \033OB
cursor left \033OD
cursor right \033OC
cursor up \033OA
Then again, I did this originally back on Panther. I don't know
if Tiger changed them or if these are my original changes, but my
arrow keys still work, plus I had switched over to iTerm before
upgrading to Tiger, so my mileage in Terminal under Tiger has been
minimual.
NOTE: I live and breath with Vim and iTerm on my Mac at work.
I'm a UNIX software developer, and a PowerMac is my workstation.
Bob Harris
--- Synchronet 3.18b-Win32 NewsLink 1.113