Map Shift-Insert in Vim

vim

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.

Best 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

Related Question