Monday, May 24, 2010

macosx-10.6 + xterm: left/right arrows behave like shift left/right arrows

hi,

i've just got a new macbookpro with macosx-10.6.3 and have
noticed that when running vim in an xterm (even via ssh
onto a remote machine), the left and right arrow keys behave
like shift left and right arrow keys moving a word at a
time instead of a character at a time. i keep having
to get out of insert mode to use the h and l keys.

has anyone else seen this behaviour or know what might
be causing it? it's probably a terminfo thing but the
arrow keys work fine in the shell. i've only seen this
behaviour in vim (i.e. not in nano).

the versions of vim i'm using range from 7.0.122 to 7.2.436.

when i type <Ctrl-V><Left> and <Ctrl-V><Right> i get the
expected strings (i.e. "<Esc>OD" and "<Esc>OC", respectively)

cheers,
raf

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment