From fad6f06ace98628bbfb0011fe9597ebecc9feb83 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Tue, 1 Mar 2011 10:54:06 +1300 Subject: [PATCH] fix a bug with NERDTreeMinimalUI and syntax highlighting Use \V for the updir text regex. Otherwise '..' is treated as a regex rather than 2 literal dots. --- plugin/NERD_tree.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index fa8f182..1321a17 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -3408,7 +3408,7 @@ function! s:setupSyntaxHighlighting() syn match NERDTreeFlag #\[RO\]# "highlighting for the .. (up dir) line at the top of the tree - execute "syn match NERDTreeUp #". s:tree_up_dir_line ."#" + execute "syn match NERDTreeUp #\\V". s:tree_up_dir_line ."#" "highlighting for the ~/+ symbols for the directory nodes syn match NERDTreeClosable #\~\<#