Skip to content

Commit

Permalink
added autoclose if Nerdtree is last window preservim/nerdtree#21
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidWinterbottom committed Apr 21, 2016
1 parent 0fb4cf6 commit 3f982e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ map <C-T> :NERDTreeToggle<CR>
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif

"-----------------------------------------
" BufExplorer settings
Expand Down

0 comments on commit 3f982e7

Please sign in to comment.