NERDTree4.0在Windows下无法改变CWD的问题

搜索了一下,找到这个: http://github.com/scrooloose/nerdtree/issues/closed#issue/7
引用

I ran into the same thing on WinXP when just trying to open the tree. It looked like it was inserting an extra backslash in the directory path during the escaping. I just changed line 142 to:

let s:escape_chars =  " \\`\|\"#%&,?()\*^<>"
if s:running_windows
    let s:escape_chars =  " `\|\"#%&,?()\*^<>"
endif


It may not be the correct solution, but it allowed me to use it on both windows and linux


照上面所说的,打开plugin/NERD_tree.vim进行编辑,把142行用上面的代码替换掉就好了。

你可能感兴趣的:(linux,windows,vim)