Can't open folders in Linux nerdtree vim

5,374

Solution 1

I'm having a similar problem using Vim 7.2 and the latest NERDtree plugin (4.2.0).

The odd symbols are because your terminal does not support the new arrows. You can fix that by putting

let NERDTreeDirArrows=0

in your .vimrc

I'm still working on the the more important issue of it not opening directories though.

Solution 2

I'm aware this is old, but I had a similar problem and the variable names seem to have changed. The following fixed the problem for me with vim 8.0.427 and NERDTree 5.0.0:

let NERDTreeDirArrowExpandable='+'
let NERDTreeDirArrowCollapsible='~'

Though may be due to bug in the nerdtree/plugin/NERD_tree.vim script conditional that deals with setting the arrows based on whether it's a windows system or not. Inverting the conditional (Removing the !) on line 70 to be:

if nerdtree#runningWindows()

did the trick as well.

Share:
5,374

Related videos on Youtube

Minh Toan
Author by

Minh Toan

Updated on September 18, 2022

Comments

  • Minh Toan
    Minh Toan over 1 year

    I can't open folders in nerdtree vim. It won't open the folders, and these funky symbols are being displayed:

    enter image description here

    Does anyone have a clue about how to get this working?

    I'm running UTF-8.

  • Minh Toan
    Minh Toan about 12 years
    ty for the tip,,, let me know if you find a solution to the opening directoryes problem
  • Lance
    Lance almost 12 years
    Well, not really an answer, but I eventually upgraded to vim 7.3 and the problems seemed to go away.