diff --git a/states/vim/vimrc.j2 b/states/vim/vimrc.j2 index 5753f94..b12cdb0 100644 --- a/states/vim/vimrc.j2 +++ b/states/vim/vimrc.j2 @@ -24,3 +24,13 @@ if has("autocmd") \ endif au VimLeave * silent execute '!echo -ne "\e[ q"' | redraw! endif + +" NERDTree +let g:NERDTreeShowHidden = 1 +let g:NERDTreeMinimalUI = 1 +let g:NERDTreeIgnore = [] +let g:NERDTreeStatusline = '' +" Automaticaly close nvim if NERDTree is only thing left open +autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif +" Toggle +nnoremap :NERDTreeToggle