Remove duplicate and unnecessary maps from ~/.vimrc

This commit is contained in:
Nathaniel Maia 2019-08-01 18:56:30 +00:00 committed by natemaia
parent a20402b981
commit 46097d3452

View File

@ -100,7 +100,10 @@ vnoremap gyy <Esc>gg"+yG''
" open ranger as a file chooser using the function below
nnoremap <leader>r :call <SID>ranger()<CR>
" select buffer from a list
nnoremap <Leader>b :Bselect<CR>
" close current buffer (and tab if needed)
nnoremap <Leader>q :Bclose<CR>:silent tabclose<CR>gT
" change windows with ctrl+(hjkl)
@ -142,16 +145,9 @@ nnoremap <silent> <Leader>tn :tabnext<CR>
nnoremap <silent> <Leader>tf :tabfirst<CR>
nnoremap <silent> <Leader>tp :tabprevious<CR>
" close current buffer and/or tab
nnoremap <silent> <Leader>q :B<CR>:silent tabclose<CR>gT
" open a new tab in the current directory with netrw
" open a new tab in the current directory with netrw (file browser)
nnoremap <silent> <Leader>- :tabedit <C-R>=expand("%:p:h")<CR><CR>
" split the window vertically and horizontally
nnoremap _ <C-W>s<C-W><Down>
nnoremap <Bar> <C-W>v<C-W><Right>
" fix syntax highlighting issues
nnoremap U :syntax sync fromstart<CR>:redraw!<CR>