From 6432ed0dc3267e4483a7deb0c3490ad884a7af6a Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sun, 27 Sep 2020 21:12:04 +0200 Subject: [PATCH] updated vimrc --- states/vim/vimrc.j2 | 10 ++++++++++ 1 file changed, 10 insertions(+) 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