diff --git a/base/.vimrc b/base/.vimrc index ac801afd..ad1bdab5 100644 --- a/base/.vimrc +++ b/base/.vimrc @@ -100,7 +100,10 @@ vnoremap gyy gg"+yG'' " open ranger as a file chooser using the function below nnoremap r :call ranger() +" select buffer from a list nnoremap b :Bselect + +" close current buffer (and tab if needed) nnoremap q :Bclose:silent tabclosegT " change windows with ctrl+(hjkl) @@ -142,16 +145,9 @@ nnoremap tn :tabnext nnoremap tf :tabfirst nnoremap tp :tabprevious -" close current buffer and/or tab -nnoremap q :B:silent tabclosegT - -" open a new tab in the current directory with netrw +" open a new tab in the current directory with netrw (file browser) nnoremap - :tabedit =expand("%:p:h") -" split the window vertically and horizontally -nnoremap _ s -nnoremap v - " fix syntax highlighting issues nnoremap U :syntax sync fromstart:redraw!