equalsraf / vim-qt

An experimental Qt gui for Vim.
129 stars 14 forks source link

Copy and paste from clipboard #5

Closed gBopHuk closed 7 years ago

gBopHuk commented 7 years ago

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.

10110111 commented 7 years ago

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.

gBopHuk commented 7 years ago

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?

gBopHuk commented 7 years ago

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.