mirror of
https://github.com/He4eT/dotfiles.git
synced 2026-06-18 19:04:26 +00:00
vim: wayland-ready
This commit is contained in:
parent
96c353ef78
commit
b7b1f2d4df
1 changed files with 10 additions and 2 deletions
12
root/.vimrc
12
root/.vimrc
|
|
@ -66,5 +66,13 @@
|
|||
|
||||
""" Copy'n'paste
|
||||
|
||||
nnoremap <silent><leader>y :call system('xclip -i -selection clipboard', @@)<cr>
|
||||
vnoremap <silent><leader>y y:call system('xclip -i -selection clipboard', @@)<cr>
|
||||
function! PushToClipboard()
|
||||
if !empty($WAYLAND_DISPLAY)
|
||||
call system('wl-copy', @")
|
||||
else
|
||||
call system('xclip -i -selection clipboard', @")
|
||||
endif
|
||||
endfunction
|
||||
|
||||
nnoremap <silent><leader>y :call PushToClipboard()<CR>
|
||||
vnoremap <silent><leader>y y:call PushToClipboard()<CR>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue