problems with vim and shortcuts
Submitted by Thilo Six
Link to original bug (#418732)
Description
Please describe the problem: I have vim-full installed:
$ aptitude show vim-full Package: vim-full State: installed Automatically installed: no Version: 1:7.0-164+1ubuntu6
In my .vimrc i have the following keymapping:
<--------------------------------------------------------
" The paste option is intended for invoking temporarily while pasting in text.
" It avoids things like autoindent causing "stepped" text. This defines the
" \tp ("toggle paste") mapping, also set to <S-F4>
in both normal and insert
" mode:
nnoremap \tp :set invpaste paste?<CR>
nmap <S-F4>
\tp
imap <S-F4>
<C-O>
\tp
set pastetoggle=<S-F4>
-------------------------------------------------------->
But instead of setting vim into paste mode it enters "1;2S" at cursor position.
After playing a little i found out:
<S-F5>``<S-F6>``<S-F7>``<S-F8>``<S-F9>``<S-F11>``<S-F12>
These work as expected.
But shift+F1 produces 1;2P shift+F2 produces 1;2Q shift+F3 produces 1;2R shift+F4 produces 1;2S
when i set the shortcut from <S-F4>
to <F4>
it works as expected
in konsole (kde) everything works as desired. even konsole opened inside gnome does it right.
Steps to reproduce:
- open vim inside gnome-terminal
- try to use a shortcut in vim e.g.
<S-F4>
Actual results: it enters "1;2S" at cursor position instead of setting vim into paste mode
Expected results: it should put vim into "paste mode"
Does this happen every time? yes
Other information: originally reported in ubuntu.
see original bugreport at: https://launchpad.net/ubuntu/+source/vim/+bug/91468
Resolution: RESOLVED DUPLICATE