nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 31c1faea321a6a77fccc8b64fb33e0c2554fbf24
parent 818a53003e75d54b893ee5725f1e670964dd3cba
Author: Martin Grenfell <martin_grenfell@msn.com>
Date:   Sun, 13 Jul 2008 15:06:57 +1200

make NERDTreeChDir default to 0

we dont need it to default to 1 anymore as that was a hack for windows,
but now that we handle windows paths properly we dont need it

Diffstat:
Mdoc/NERD_tree.txt | 7+------
Mplugin/NERD_tree.vim | 2+-
2 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/doc/NERD_tree.txt b/doc/NERD_tree.txt
@@ -648,7 +648,7 @@ account. The above nodes would then be sorted like this: >
                                                            *NERDTreeChDirMode*
 
 Values: 0, 1 or 2.
-Default: 1.
+Default: 0.
 
 Use this option to tell the script when (if at all) to change the current
 working directory (CWD) for vim.
@@ -667,11 +667,6 @@ the CWD is changed whenever the tree root is changed. For example, if the CWD
 is /home/marty/foobar and you make the node for /home/marty/foobar/baz the new
 root then the CWD will become /home/marty/foobar/baz.
 
-Authors note: at work i have this option set to 1 because i have a giant ctags
-file in the root dir of my project. This way i can initialise the NERD tree
-with the root dir of my project and always have ctags available to me --- no
-matter where i go with the NERD tree.
-
 ------------------------------------------------------------------------------
                                                  *NERDTreeHighlightCursorline*
 Values: 0 or 1.
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -45,7 +45,7 @@ call s:InitVariable("g:NERDChristmasTree", 1)
 call s:InitVariable("g:NERDTreeAutoCenter", 1)
 call s:InitVariable("g:NERDTreeAutoCenterThreshold", 3)
 call s:InitVariable("g:NERDTreeCaseSensitiveSort", 0)
-call s:InitVariable("g:NERDTreeChDirMode", 1)
+call s:InitVariable("g:NERDTreeChDirMode", 0)
 if !exists("g:NERDTreeIgnore")
     let g:NERDTreeIgnore = ['\~$']
 endif