[Feisty] problems with vim and shortcuts

Thilo Six T.Six at gmx.de
Sat Mar 10 15:24:28 UTC 2007


Hello

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

any idea how to stop this?


bye Thilo
-- 
i am on Ubuntu 2.6 KDE
- some friend of mine

gpg key: 0x4A411E09





More information about the ubuntu-users mailing list