On Sun, Jan 31, 2010 at 01:33:16PM -0500, Benjamin R. Haskell wrote:
> I'm using mlterm, but XTERM is set to 'xterm'. When I set it to
> 'mlterm', I get the same behaviour. It works when I run vim from
> xterm, though, both when TERM is 'xterm' and 'mlterm'.
I assume that "XTERM" is a typo and that you meant "TERM".
Yes, sorry.
The upshot is that the Vim mappings the OP is looking for are:
:cmap <Esc>O1;5A <C-Up>
:cmap <Esc>O1;5B <C-Down>
:cmap <Esc>O1;5C <C-Right>
:cmap <Esc>O1;5D <C-Left>
Yay! I tried Gary's ctrl-v suggestion and it put ^[O1;5D in the buffer, but it
didn't work until I tried the above - cmap without the [ character!
It may or may not matter, but I was using the correct TERM value
(TERM=mlterm).
It doesn't matter.
Thanks, guys!
--
.
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php