Map Shift-Insert in 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.
Solution 1:
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
Solution 2:
Try putting following lines in .vimrc
" Paste yanked text
map <S-Insert> <C-r>"
map! <S-Insert> <C-r>"