mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-26 18:30:45 +08:00
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
This commit is contained in:
parent
818a53003e
commit
31c1faea32
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user