From 02b3cec8272f227756f6877b6ba2b379ef7bad0f Mon Sep 17 00:00:00 2001 From: marty Date: Fri, 31 Jul 2009 18:33:06 +1200 Subject: [PATCH] set up syntax highlighting even if highlighting rules already exist --- plugin/NERD_tree.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 698b9fc..29b7b6e 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -2275,7 +2275,7 @@ function! s:initNerdTreeInPlace(dir) call s:bindMappings() setfiletype nerdtree " syntax highlighting - if has("syntax") && exists("g:syntax_on") && !has("syntax_items") + if has("syntax") && exists("g:syntax_on") call s:setupSyntaxHighlighting() endif @@ -2522,7 +2522,7 @@ function! s:createTreeWin() call s:bindMappings() setfiletype nerdtree " syntax highlighting - if has("syntax") && exists("g:syntax_on") && !has("syntax_items") + if has("syntax") && exists("g:syntax_on") call s:setupSyntaxHighlighting() endif endfunction