Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
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
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

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:

share|improve this answer

Try putting following lines in .vimrc

" Paste yanked text
map <S-Insert> <C-r>"
map! <S-Insert> <C-r>"
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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