nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 22de74a45bf0c2b07ec149da215526a8516c24d2
parent 3e44d4ea5c3d8cfa192e66c77afd05629ddc92e6
Author: Martin Grenfell <martin.grenfell@gmail.com>
Date:   Wed, 31 Oct 2012 04:02:45 -0700

Merge pull request #200 from hpesoj/master

NERD tree doesn't currently work on Vim 7.2 and below.
Diffstat:
Mplugin/NERD_tree.vim | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -1618,7 +1618,13 @@ function! s:TreeDirNode._initChildren(silent)
     "get an array of all the files in the nodes dir
     let dir = self.path
     let globDir = dir.str({'format': 'Glob'})
-    let filesStr = globpath(globDir, '*',1) . "\n" . globpath(globDir, '.*',1)
+
+    if version >= 703
+        let filesStr = globpath(globDir, '*', 1) . "\n" . globpath(globDir, '.*', 1)
+    else
+        let filesStr = globpath(globDir, '*') . "\n" . globpath(globDir, '.*')
+    endif
+
     let files = split(filesStr, "\n")
 
     if !a:silent && len(files) > g:NERDTreeNotificationThreshold