Hi Bram,
I was wondering if it would be possible to add the termcap entries
<kLeft>, <kRight>, <kUp> and <kDown> and <kInsert> to Vim 7 (for keypad
keys)?
I really like the '*' form of entering key codes. I hacked mrxvt so that
modified cursor, function or keypad keys produce escape sequences
consistent with Vim 7's "*" form modifier termcap sequences. (Now most
modified keypad / function keys work out of the box with mrxvt-0.5.0 and
vim 7. Call me biased, but I really don't care so much if these keys
don't work with other text editors ...)
Unfortunately Vim 7 has termcap sequences for all keypad keys EXCEPT the
five listed above. Thus I can get my keypad home/end to work, but not
left/right, up/down and insert.
Additionally, would it also be possible to change the default termcap
sequences of the keypad keys to use Vim7's wonderful "*" form?
E.g. <kPageUp> should be "^[O*y" and not "^[Oy" by default.
Finally, I notice that <kHome> on my system is '^[[1;*~' by default and
not '^[Ow'. The remainder of the keypad keys produce a '^[Ox' escape
sequence (where x is some lower case letter), so shouldn't <kHome> be
'^[Ow' by default? The '^[Ow' is the sequence produced by all rxvt
forks, and xterm with the VT220 keyboard (with numlock on while pressing
shift).
I'd recommend setting <kHome> and <kEnd> to '^[O*w' and '^[O*q'
respectively, and adding <yHome> and <yEnd> for the sequences '^[[1;*~'
and '^[[4;*~' respectively. (On some system I think that the linux
console generates theses sequences by default, so you can call them
<lHome> and <lEnd> if you like :)
Just one of my pipe dreams to get all my keypad keys *with* modifiers
working perfectly under Vim 7 & mrxvt-0.5. I don't really use the keypad
keys too much though, so it's not crucial. However every once in a while
I attempt moving using the keypad keys and get strange characters
entered into my buffer ... :)
Thanks in advance,
GI
PS: I'm still using the anonymous CVS version of Vim from sourceforge.
If any of this has changed since then, please let me know and I'll
attempt to persuade by 56.6kbps modem to use the ftp / SVN server.
--
It's a good thing Linux is under GNU General Public Lisense or
Microsoft would buy them out too!