diff --git a/nvim/lua/keymap.lua b/nvim/lua/keymap.lua index a3ac307..5f51d67 100644 --- a/nvim/lua/keymap.lua +++ b/nvim/lua/keymap.lua @@ -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("r",":NvimTreeRefresh") nmap("n",":NvimTreeToggle") nmap("zn","zf%") +nmap("y",'\"+y') +vmap("y",'\"+y')