move b:NERDTreeType into the NERDTree class and add some query methods

This commit is contained in:
Martin Grenfell
2015-11-14 12:01:55 +00:00
parent 848857d18b
commit 5c20274761
6 changed files with 25 additions and 16 deletions

View File

@@ -106,7 +106,7 @@ Stick this in your vimrc to open NERDTree with `Ctrl+n` (you can set whatever ke
Stick this in your vimrc:
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
> Can I have different highlighting for different file extensions?