1. John Guidry
  2. dotfiles

Commits

John Guidry  committed 316aaa8

Kill nerdtree if it's the last open vim buffer

  • Participants
  • Parent commits a08d6a1
  • Branches default

Comments (0)

Files changed (1)

File .vimrc

View file
   augroup END
 
   " Kill nerdtree if it's the last open vim buffer
-  autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
+  augroup nerdtree
+    au!
+    autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
+  augroup END
 endif