equalsraf/vim-qt

Copy and paste from clipboard

gBopHuk opened this issue · 3 comments

How to copy and paste from clipboard? In gvim and vim it feature provided by SHIFT/CTRL+insert.
But in vim-qt I get <S-Insert> or <C-Insert> text in the buffer.

Normally in gVim you'll also get <S-Insert> and <C-Insert> (unless you have special keybindings for this). In Vim you have it work because the terminal emulator you use supports this. In X11 gVim the correct way is "+y to yank and "+P to paste.

All maps I have

$ grep map ~/.gvimrc
"nmap  :NERDTreeToggle
:map  :setlocal spell! spelllang=ru
":map  :AirlineRefresh 
:map  :AirlineRefresh 

$ grep map ~/.vimrc
"leader map 
let mapleader = ","
map  :nohl
imap [ []
imap ( ()
imap { {}
"inoremap \" \""
"inoremap ' ''
let g:ctrlp_map = ''
nmap  :NERDTreeToggle
nmap  :NERDTreeFromBookmark
" Plugin key-mappings.
"imap      (neosnippet_expand_or_jump)
imap      (neosnippet_expand_or_jump)
smap      (neosnippet_expand_or_jump)
xmap      (neosnippet_expand_target)
"imap 
"smap  neosnippet#expandable_or_jumpable() ?
smap  neosnippet#expandable_or_jumpable() ?
	nmap  :q
:map  :AirlineRefresh 

Which of them provide that behavior?

I add to the ~/.gvimrc
map <S-Insert> <MiddleMouse>
map! <S-Insert> <MiddleMouse>
And I got past to the buffer from clipboard. But in gvim that works without that hack.