mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-12-11 20: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
|
||||
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 --primary'), '<C-v><C-m>', '', 'g') \| exec 'normal! ' . v:count1 . 'P'<cr>
|
||||
else
|
||||
"" Unknown platform
|
||||
endif
|
||||
|
||||
" Add shortcuts to yank/paste to unnamed/unnamedplus clipboards
|
||||
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>yn <Plug>yankstack_substitute_newer_paste
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user