I have the following in my .vimrc
(I don't recall where I found the original):
" Cut, Copy, Paste
vnoremap <S-Del> "+x
vnoremap <C-Insert> "+y
If I use Shift+Cursor keys to select some text and then press Ctrl+Ins to copy that text to the X11 clipboard, it works fine in gVim, but not in Vim.
Further investigation (using noremap <Leader>y "+y
) suggests that there's nothing wrong with the clipboard support, but rather something wrong with the keybinding.
I confirmed this by:
noremap <Leader>p :echo 'hello'<CR>
noremap <C-Insert> :echo 'hello'<CR>
The former works; the latter does nothing.
Linux Mint 18.3, Cinnamon, Gnome Terminal
"+y
. – Roger Lipscombe Dec 13 '17 at 9:42