Update vim with ack, git, keybindings, nerdtree

This commit is contained in:
2021-06-16 16:30:55 -05:00
parent 51d1be03bd
commit 143ec2f33f
7 changed files with 72 additions and 23 deletions

25
nvim/keybindings Normal file
View File

@ -0,0 +1,25 @@
let mapleader = " "
" Auto-toggle paste mode
let &t_SI .= "\<Esc>[?2004h"
let &t_EI .= "\<Esc>[?2004l"
function! XTermPasteBegin()
set pastetoggle=<Esc>[201~
set paste
return ""
endfunction
inoremap <special> <expr> <Esc>[200~ XTermPasteBegin()
" Clear search highlighting
noremap <Leader><Esc> :let @/ = ""<CR>
" Spellcheck
nnoremap <Leader>S :setlocal spell! spelllang=en_us<CR>
noremap H ^
noremap L $
noremap <Leader>c :set cursorline!<CR>
noremap <Leader>n :set relativenumber!<CR>
noremap <Leader>; $a;<Esc>