avoid strange behavior in some terminal
This commit is contained in:
parent
3f22313f73
commit
ade903e01a
1 changed files with 4 additions and 13 deletions
|
@ -47,20 +47,11 @@ augroup resCur
|
|||
autocmd BufReadPost * call setpos(".", getpos("'\""))
|
||||
augroup END
|
||||
" 快捷键设置
|
||||
vmap <C-c> "+y
|
||||
"imap <C-c> <ESC>v<CR>"+y
|
||||
"nmap <C-c> v<CR>"+y
|
||||
|
||||
" support wayland
|
||||
xnoremap "+y y:call system("wl-copy", @")<cr>
|
||||
nnoremap "+p :let @"=substitute(system("wl-paste --no-newline"), '<C-v><C-m>', '', 'g')<cr>p
|
||||
nnoremap "*p :let @"=substitute(system("wl-paste --no-newline --primary"), '<C-v><C-m>', '', 'g')<cr>p
|
||||
|
||||
vmap <C-c> "+y y:call system("wl-copy", @")<cr>
|
||||
nmap <C-v> "+p :let @"=substitute(system("wl-paste --no-newline"), '<C-v><C-m>', '', 'g')<cr>p
|
||||
nmap <C-v> "*p :let @"=substitute(system("wl-paste --no-newline --primary"), '<C-v><C-m>', '', 'g')<cr>p
|
||||
imap <C-v> <ESC>"+p :let @"=substitute(system("wl-paste --no-newline"), '<C-v><C-m>', '', 'g')<CR>p
|
||||
vmap <C-x> "+c
|
||||
"map <C-v> "+gP
|
||||
nmap <C-v> i<CR>"+gP<CR>
|
||||
vmap <C-v> "+p
|
||||
imap <C-v> <C-r><C-o>"+
|
||||
imap <C-s> <ESC>:w<CR>
|
||||
nmap <C-q> :wq<CR>
|
||||
imap <C-q> <ESC>:wq<CR>
|
||||
|
|
Loading…
Reference in a new issue