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