nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit fad6f06ace98628bbfb0011fe9597ebecc9feb83
parent e697444f29bbe2fb38f2274b6a136ad06ac3d755
Author: Martin Grenfell <martin.grenfell@gmail.com>
Date:   Tue,  1 Mar 2011 10:54:06 +1300

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.

Diffstat:
Mplugin/NERD_tree.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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 #\~\<#