I am trying to map Shift-Insert to paste command by adding this line in vimrc

nnoremap <S-Insert> "+P

But it does not change anything.

If I put other shortcut like (<S-I>) it works well.

link|improve this question
1  
I think X is capturing it before its getting to Vim. So vim might be configured for that sequence, but it never sees it. I think there is a way to turn off these kinds of things in X, but someone else will have to chime in for that. – deltaray Nov 24 '10 at 19:14
1  
We need to know what operating system you're using and whether you're using console Vim or gVim. Console Vim under *nix cannot see the Shift+Insert key combination, due to limitations in (n)curses and terminal emulation; that is, it's not Vim's fault. – Heptite Nov 24 '10 at 20:29
I doubt he is using gvim. Key recognition is a recurrent problem with vim, unlike gvim. (I don't say this is a vim issue though. It's tied to the terminal) – Luc Hermitte Nov 25 '10 at 10:25
feedback

1 Answer

Try putting following lines in .vimrc

" Make shift-insert work like in Xterm
map <S-Insert> <MiddleMouse>
map! <S-Insert> <MiddleMouse>

I had the same problem and after putting this lines in .vimrc shift insert works like a charm. Refrence:http://tech.groups.yahoo.com/group/vim/message/104539

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.