简体   繁体   中英

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.

在你的.vimrc中输入let g:NERDTreeNodeDelimiter = "\ "

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM