I'm trying to give myself a bunch of keyboard shortcuts.  I do fine with most 
keys, but F1-F4 are not recognized with any modifiers.  I suspect there's a 
problem in keymapping at some level.

I'm running under gnome 2 on Ubuntu Linux 11.04.

In my .vimrc,
:map <F2> iHello there.<esc>
it works fine.  If I try
:map <S-F2> iHi there.<esc>
it does nothing.

Now, with showkey(1) I've found that Shift-F2 emits the characters <esc>O1;2Q
And if I use this sequence in the map command, it works fine:
:map <esc>O1;2Q iFinally working.<esc>

Summary:
Modifiers on F5-F12 work fine.
F1-F4 work fine in the absence of modifiers.
Some of the combinations don't work in showkey(1) so I don't expect them to 
work in vim.  The combos that should work but don't are
S-F1 C-S-F1 M-S-F1
S-F2 C-F2 C-S-F2 M-F2 M-S-F2
S-F3 C-F3 C-S-F3 M-F3 M-S-F3
S-F4 C-F4 C-S-F4 M-S-F4

This is so odd, I don't know if my setup is mangling these characters, or if 
it's something else.

Is this true for anyone else?  Is there a solution?

-- 
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

Reply via email to