diff --git a/nvim/lua/globals_opts.lua b/nvim/lua/globals_opts.lua index cb19730..039e670 100644 --- a/nvim/lua/globals_opts.lua +++ b/nvim/lua/globals_opts.lua @@ -23,3 +23,4 @@ set.termguicolors = true set.matchpairs:append("<:>") set.completeopt = "menuone,noselect,preview" set.expandtab = true +set.relativenumber = true diff --git a/nvim/lua/keymap.lua b/nvim/lua/keymap.lua index 85ef1a7..c56b040 100644 --- a/nvim/lua/keymap.lua +++ b/nvim/lua/keymap.lua @@ -11,11 +11,15 @@ 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 nmap("","") +nmap("", ":noh") nmap("",":ToggleTerm direction=float") @@ -36,3 +40,5 @@ nmap("r",":NvimTreeRefresh") nmap("n",":NvimTreeToggle") nmap("zn","zf%") +nmap("y",'\"+y') +vmap("y",'\"+y')