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.matchpairs:append("<:>")
set.completeopt = "menuone,noselect,preview" set.completeopt = "menuone,noselect,preview"
set.expandtab = true set.expandtab = true
set.relativenumber = true

View File

@ -11,11 +11,15 @@ 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
nmap("<SPACE>","<Nop>") nmap("<SPACE>","<Nop>")
nmap("<Esc><Esc>", ":noh<cr>")
nmap("<C-f>",":ToggleTerm direction=float<cr>") nmap("<C-f>",":ToggleTerm direction=float<cr>")
@ -36,3 +40,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')