简体   繁体   English

Nerdtree ^ G在文件夹和文件名之前OSX终端vim

[英]Nerdtree ^G before folder and file names OSX terminal vim

There "^G" before names. 名字前面有“^ G”。 It happens only when using vim in terminal. 只有在终端中使用vim时才会发生这种情况。 It is normal in MacVim. 这在MacVim是正常的。

Here's the image 这是图像

I tried export LC_ALL=en_US.utf-8 export LANG="$LC_ALL" but it doesn't work. 我尝试导出LC_ALL = en_US.utf-8 export LANG =“$ LC_ALL”但它不起作用。

在你的.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. 查看相关的GitHub问题 :问题是Mac的默认vim没有conceal功能,NERDTree在这种情况下表现不佳。

To fix it you can install Homebrew's vim, that is compiled with this feature, with brew install vim 要修复它,你可以使用brew install vim使用此功能编译的Homebrew的brew install vim

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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