Commits

John Guidry committed 316aaa8

Kill nerdtree if it's the last open vim buffer

Comments (0)

Files changed (1)

   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