在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