Vim的NERDTree插件无法打开目录,显示�~V�

前端之家收集整理的这篇文章主要介绍了Vim的NERDTree插件无法打开目录,显示�~V�前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

在ubuntu的docker镜像中,给vim安装了NERDTree插件,但是本来目录左侧应该显示“+”,但是变成了“�~V�”,而且无法打开目录。


解决方案:

编辑NERD_tree.vim文件,把

if!nerdtree#runningWindows()&&!nerdtree#runningCygwin()
calls:initVariable("g:NERDTreeDirArrowExpandable","?~V?")
calls:initVariable("g:NERDTreeDirArrowCollapsible","?~V?")
else
calls:initVariable("g:NERDTreeDirArrowExpandable","+")
calls:initVariable("g:NERDTreeDirArrowCollapsible","~")
endif




改成:

"if!nerdtree#runningWindows()&&!nerdtree#runningCygwin()
"calls:initVariable("g:NERDTreeDirArrowExpandable","?~V?")
"calls:initVariable("g:NERDTreeDirArrowCollapsible","?~V?")
"else
calls:initVariable("g:NERDTreeDirArrowExpandable","~")
"endif
原文链接:https://www.f2er.com/bash/387782.html

猜你在找的Bash相关文章