mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-12-05 01:01:30 +01:00
vim: cleanup clipboard shortcuts
This commit is contained in:
parent
0c7d0ec24f
commit
5674865f11
|
@ -135,15 +135,13 @@ elseif g:uname ==? 'Linux'
|
||||||
"" Linux specific stuff
|
"" Linux specific stuff
|
||||||
xnoremap "+y y:call system("wl-copy", @")<cr>
|
xnoremap "+y y:call system("wl-copy", @")<cr>
|
||||||
map "+p :<C-U>let @"=substitute(system('wl-paste --no-newline'), '<C-v><C-m>', '', 'g') \| exec 'normal! ' . v:count1 . 'p'<cr>
|
map "+p :<C-U>let @"=substitute(system('wl-paste --no-newline'), '<C-v><C-m>', '', 'g') \| exec 'normal! ' . v:count1 . 'p'<cr>
|
||||||
map "*p :<C-U>let @"=substitute(system('wl-paste --no-newline --primary'), '<C-v><C-m>', '', 'g') \| exec 'normal! ' . v:count1 . 'P'<cr>
|
|
||||||
else
|
else
|
||||||
"" Unknown platform
|
"" Unknown platform
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Add shortcuts to yank/paste to unnamed/unnamedplus clipboards
|
" Add shortcuts to yank/paste to unnamed/unnamedplus clipboards
|
||||||
map <Leader>y "+y
|
map <Leader>y "+y
|
||||||
map <Leader>p "+P
|
map <Leader>p "+p
|
||||||
map <Leader>P "*p
|
|
||||||
map <Leader>yp <Plug>yankstack_substitute_older_paste
|
map <Leader>yp <Plug>yankstack_substitute_older_paste
|
||||||
map <leader>yn <Plug>yankstack_substitute_newer_paste
|
map <leader>yn <Plug>yankstack_substitute_newer_paste
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user