码迷,mamicode.com
首页 > 系统相关 > 详细

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

时间:2018-06-14 11:45:28      阅读:1380      评论:0      收藏:0      [点我收藏+]

标签:镜像   安装   AC   als   init   round   doc   nerd   exp   

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


解决方案:

编辑NERD_tree.vim文件,把

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

             



改成:

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



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

标签:镜像   安装   AC   als   init   round   doc   nerd   exp   

原文地址:http://blog.51cto.com/watertoeast/2129155

(0)
(1)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!