搜索了一下,找到这个:[url]http://github.com/scrooloose/nerdtree/issues/closed#issue/7[/url]
[quote]
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:
[code]let s:escape_chars = " \\`\|\"#%&,?()\*^<>"
if s:running_windows
let s:escape_chars = " `\|\"#%&,?()\*^<>"
endif[/code]
It may not be the correct solution, but it allowed me to use it on both windows and linux[/quote]
照上面所说的,打开plugin/NERD_tree.vim进行编辑,把142行用上面的代码替换掉就好了。
[quote]
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:
[code]let s:escape_chars = " \\`\|\"#%&,?()\*^<>"
if s:running_windows
let s:escape_chars = " `\|\"#%&,?()\*^<>"
endif[/code]
It may not be the correct solution, but it allowed me to use it on both windows and linux[/quote]
照上面所说的,打开plugin/NERD_tree.vim进行编辑,把142行用上面的代码替换掉就好了。
本文介绍了一个关于NERDTree插件在Windows XP环境下出现的问题及其解决方案。通过修改NERDTree源代码中特定行的目录转义字符设置,可以有效解决在Windows和Linux系统上运行时出现的不兼容问题。
6344

被折叠的 条评论
为什么被折叠?



