Why does my nerd tree have these odd characters

纵饮孤独 提交于 2020-01-02 03:37:08

问题


Trying to get a nice vim setup going. I'd like to have nerd tree working at it's best, but when i use it it's got these chars in front of each section:

?~V?

Looks like this:

?~V? project/$
  ?~V? tools/$

回答1:


I had this exact same problem and was able to fix it by uncommenting UTF-8 and leaving ISO-8879-1 commented out in /etc/locale.gen. Then I ran locale-gen and restarted. Also added 'export LANG=en_US.UTF-8' to my .bashrc. Here are the results of my locale settings once it started working:

[lysistrata@(none) ~]$ locale -a
C
en_US.utf8
POSIX
[lysistrata@(none) ~]$



回答2:


Assuming a terminal vim (you don't mention platform, flavour nor version...) I'd say you either

  • need a UTF8 aware console (execute stty to find out if you have it enabled)

  • or you need a different TERM setting. Executing
    vim -T
    will list the builtin ones.



来源:https://stackoverflow.com/questions/7375198/why-does-my-nerd-tree-have-these-odd-characters

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!