`

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行用上面的代码替换掉就好了。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics