Merge branch 'master' of https://github.com/mightypanders/dotfiles
This commit is contained in:
commit
1ffff0e180
|
@ -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
|
||||||
|
|
|
@ -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')
|
||||||
|
|
Loading…
Reference in New Issue