Bug#428480: gnome-terminal: problem with shift + function keys and vim

Michael Schutte m.schutte.jr at gmail.com
Fri Aug 24 08:28:19 UTC 2007


On Thu, Aug 23, 2007 at 09:56:25PM +0200, Sven Arvidsson wrote:
> Are you still having this problem? There was a possibly related bug,
> 421734, which was fixed in libvte 1:0.16.6-2.

Hi,

I think that src/keymap.c in vte is to blame.  When hitting S-F2, xterm
sends "^[[1;2Q", while vte-based applications like gnome-terminal say
"^[O1;2Q".  So there is a difference of one character, but vte tries to
match xterm completely.  The bug is probably in
_vte_keymap_key_add_key_modifiers.

Markus, you could work around the bug by adding the following line to
your .vimrc:

    map! <Esc>O1;2Q <S-F2>

-- 
Best regards,
Michael Schutte <m.schutte.jr at gmail.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20070824/25d9b82e/attachment.pgp 


More information about the pkg-gnome-maintainers mailing list