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

While editing inside gVIM, whenever I press Shift+Insert, it's insert the <S-Insert> text. I'm running on Ubuntu Maverick and compile Vim from source. This is really annoying. What's wrong with my VIM?

share|improve this question

Nothing, Vim just doesn't have a binding for this keypress.

:map <silent> <S-Insert> "+p
:imap <silent> <S-Insert> <Esc>"+pa

If this helps, add the following to your ~/.vimrc:

if has("gui_running")
    map  <silent>  <S-Insert>  "+p
    imap <silent>  <S-Insert>  <Esc>"+pa

See also: registers, x11-selection, quoteplus

share|improve this answer
It's funny because I don't have that keymap before and Shift+Insert still works. I reload my OS and reuse the old .vimrc and all old plugins but now a keymap is needed. Hmm... – Phuong Nguyen Aug 14 '11 at 13:02
Also, the mapping doesn't work when I want to paste something into the command window (activated by <Esc>:) – Phuong Nguyen Sep 2 '11 at 14:39

I've found out that Shift+ Insert does not work in gVim if :set paste is active. Instead of inserting the clipboard contents, it will insert the text "<S-Insert>". Normal (console) vim does not suffer from this problem, probably because shift-insert is a terminal thing in that case, and not something handled by Vim.

The solution for me was to turn off paste mode: :set nopaste.

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.