6

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/$
lucapette
  • 20,564
  • 6
  • 65
  • 59
jpoz
  • 2,257
  • 1
  • 23
  • 29
  • The fix for me was what was recommended here: http://stackoverflow.com/questions/8753286/nerd-tree-enter-does-not-open-sub-dirs – Blake Mathman Jan 29 '12 at 22:17
  • I personally had to recompile vim. See my answer here: http://stackoverflow.com/questions/8753286/nerd-tree-enter-does-not-open-sub-dirs/14842164#14842164 – mbreining Feb 12 '13 at 21:35

2 Answers2

4

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) ~]$
unremarkable
  • 260
  • 8
  • 17
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.

sehe
  • 374,641
  • 47
  • 450
  • 633
  • 1
    Oops. I'm using Mac OS Lion's terminal. stty returns iutf8. and vim -T returns an error: E437: terminal capability "cm" required – jpoz Sep 12 '11 at 04:36