Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nerdtree ^G before folder and file names OSX terminal vim

There "^G" before names. It happens only when using vim in terminal. It is normal in MacVim.

Here's the image

I tried export LC_ALL=en_US.utf-8 export LANG="$LC_ALL" but it doesn't work.

like image 566
Sheng Avatar asked Dec 06 '18 18:12

Sheng


2 Answers

Put let g:NERDTreeNodeDelimiter = "\u00a0" in your .vimrc

like image 143
user211337 Avatar answered Oct 19 '22 04:10

user211337


See the associated GitHub issue: the issue is that Mac's default vim doesn't have the conceal feature, and NERDTree doesn't do well in this case.

To fix it you can install Homebrew's vim, that is compiled with this feature, with brew install vim

like image 2
CharlesB Avatar answered Oct 19 '22 05:10

CharlesB