This commit is contained in:
mightypanders 2022-10-13 23:55:54 +02:00
commit 1ffff0e180
2 changed files with 7 additions and 0 deletions

View File

@ -23,3 +23,4 @@ set.termguicolors = true
set.matchpairs:append("<:>")
set.completeopt = "menuone,noselect,preview"
set.expandtab = true
set.relativenumber = true

View File

@ -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("<SPACE>","<Nop>")
nmap("<Esc><Esc>", ":noh<cr>")
nmap("<C-f>",":ToggleTerm direction=float<cr>")
@ -36,3 +40,5 @@ nmap("<leader>r",":NvimTreeRefresh<cr>")
nmap("<leader>n",":NvimTreeToggle<cr>")
nmap("<leader>zn","zf%")
nmap("<leader>y",'\"+y')
vmap("<leader>y",'\"+y')