nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 91d5a52c39d988e687f2861a0d46bf4e29002e28
parent a5bc034851fabe38e53527b569860fdc8a4a8cce
Author: Martin Grenfell <martin_grenfell@msn.com>
Date:   Mon, 10 Mar 2008 20:39:30 +1300

added the NERDTreeShowLineNumbers option into the script

Diffstat:
Mplugin/NERD_tree.vim | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -43,8 +43,9 @@ endif
 call s:InitVariable("g:NERDTreeHighlightCursorline", 1)
 call s:InitVariable("g:NERDTreeMouseMode", 1)
 call s:InitVariable("g:NERDTreeNotificationThreshold", 100)
-call s:InitVariable("g:NERDTreeShowHidden", 0)
 call s:InitVariable("g:NERDTreeShowFiles", 1)
+call s:InitVariable("g:NERDTreeShowHidden", 0)
+call s:InitVariable("g:NERDTreeShowLineNumbers", 0)
 call s:InitVariable("g:NERDTreeSortDirs", 1)
 
 if !exists("g:NERDTreeSortOrder")
@@ -1442,7 +1443,12 @@ function! s:CreateTreeWin()
     setlocal foldcolumn=0
     setlocal nobuflisted
     setlocal nospell
-    setlocal nonu
+    if g:NERDTreeShowLineNumbers
+        setlocal nu
+    else
+        setlocal nonu
+    endif
+
     iabc <buffer>
 
     if g:NERDTreeHighlightCursorline