On Thu, 8 Mar 2012, [email protected] wrote:
Hi,I am using vim 7.3.470 on a Gentoo Linux system.It seems, that <S-F1> comes out as <F11>, <S-F2> comes out as <F12> and <C-Fn> does not work any longer (it did, since I had some mapping for that).I checked with xkeycaps, whether this keys are remapped before vim can noticed them. But with xkeycaps everything seems to be fine.Is this a feature?
Sort of.In rxvt-unicode, Shift + <F1 through F10> generate <F11 through F20>. Which is nice for keyboards that don't have <F13 through F20>.
Generally terminal-based Vim has many limitations on what key sequences will work properly in most terminal types. And even some of the "safe" set is ambiguous, thanks to the myriad historical vagaries of terminal( emulator)s and ASCII.
Example ambiguities: <C-i> = <Tab> <C-j> = <LF> (often works as "Enter") <C-m> = <CR> (often works as "Enter")At this point, in Vim, you can map things to literal escape sequences, so even though you can't fix Shift-F1 vs F11 (since rxvt-unicode sends the exact same sequence to `vim`), you can probably fix <C-Fn>:
" e.g. to map Ctrl + F1:
map <Esc>[11^ {rhs}
Where the left-hand side was found by typing <C-v> <C-F1>, and replacing
the literal <ESC> character with <Esc>.
-- Best, Ben -- 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
