vim - nerdtree 突然坏了 [英] vim - nerdtree suddenly broke

查看:25
本文介绍了vim - nerdtree 突然坏了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Nerdtree 突然开始表现得有点奇怪.正如您在屏幕截图中看到的,目录都以 ?~V? 为前缀.随后我也无法再打开目录,只能打开文件.

Nerdtree has suddenly started acting a little strange. As you can see in the screenshot, directories are all prefixed with ?~V?. subsequently I can't open the directories anymore either, just the files.

任何人都知道从哪里开始.这甚至是一个 vim 问题,或者可能是 shell 本身的问题?

Anyone have any idea where to begin here. Is this even a vim problem, or perhaps lower down, in the shell itself?

非常感谢任何想法

推荐答案

正如有人在评论中所建议的,这确实是一个编码问题.我最近切换到 zsh.

As someone suggested in the comments, it was indeed an encoding issue. I had recently switched to zsh.

将以下内容添加到您的 bashrc/zshrc 等中.应该可以解决问题

Adding the following to your bashrc / zshrc etc.. should fix the problem

export LC_ALL=en_US.utf-8 
export LANG="$LC_ALL" 

或者,您可以通过添加

Alternatively you can tell NERDTree not to use the fancy arrow characters, by adding

let g:NERDTreeDirArrows=0

到您的 vimrc,这将允许您保留当前的编码

to your vimrc which will allow you to keep your current encoding

这篇关于vim - nerdtree 突然坏了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆