fix the clipboard of vim
This commit is contained in:
parent
ade903e01a
commit
8770b6b12f
1 changed files with 7 additions and 5 deletions
|
@ -47,12 +47,14 @@ augroup resCur
|
|||
autocmd BufReadPost * call setpos(".", getpos("'\""))
|
||||
augroup END
|
||||
" 快捷键设置
|
||||
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
|
||||
vmap <C-c> "+y
|
||||
map <C-v> "+p
|
||||
imap <C-v> <C-r>+
|
||||
vmap <C-x> "+d
|
||||
vmap <C-s> <ESC>:w<CR>
|
||||
nmap <C-s> :w<CR>
|
||||
imap <C-s> <ESC>:w<CR>
|
||||
vmap <C-q> <ESC>:wq<CR>
|
||||
nmap <C-q> :wq<CR>
|
||||
imap <C-q> <ESC>:wq<CR>
|
||||
nmap <C-a> ggVG<CR>
|
||||
|
|
Loading…
Reference in a new issue