add yank to system clipboard

This commit is contained in:
Markus Dieckmann 2022-09-19 10:28:51 +02:00
parent 2f532d405d
commit c329108285
1 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,9 @@ function imap(shortcut, command)
map('i', shortcut, command)
end
function vmap(shortcut, command)
map('v', shortcut, command)
end
function xmap(shortcut, command)
map('x', shortcut, command)
end
@ -30,3 +33,5 @@ nmap("<leader>r",":NvimTreeRefresh<cr>")
nmap("<leader>n",":NvimTreeToggle<cr>")
nmap("<leader>zn","zf%")
nmap("<leader>y",'\"+y')
vmap("<leader>y",'\"+y')