add yank to system clipboard

This commit is contained in:
Markus Dieckmann 2022-09-19 10:28:51 +02:00
parent 2f532d405d
commit c329108285

View File

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