From 31c1faea321a6a77fccc8b64fb33e0c2554fbf24 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sun, 13 Jul 2008 15:06:57 +1200 Subject: [PATCH] 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 --- doc/NERD_tree.txt | 7 +------ plugin/NERD_tree.vim | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/doc/NERD_tree.txt b/doc/NERD_tree.txt index 2173b56..b8693d9 100644 --- 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 index f331365..c942119 100644 --- 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