In left dir tree, left of every file name displayed "^G"
:version: git rev-parse --short HEAD: vim
I resolve the problem.
let g:NERDTreeNodeDelimiter = 'x'
add this in .vimrc.
@chiplua, using 'x' may cause problems for you. If your file or directory contains an 'x', NERDTree will not see the whole name. Anything after the 'x' will be dropped. It's better to use a different character. See :h NERDTreeNodeDelimiter.
I saw several commits, but the situation was same. I did not set any settings for nerdtree. I'm just using simple configuration.
Thanks
I could fix by brew install vim --with-override-system-vi. Sorry for bothering you.
Thanks :)
I'm going to close this issue. Be sure to heed my warning about using 'x' as your delimiter.
I still have this same issue even after updating today. Maybe this issue should be reopened?
I just tested and up to commit c905a5d7b87051e574c2e72fae57e56c456ba2f4 everything used to work fine. The next commit (ffa8be8) was the one that introduced this issue.
Just updated NERDTree and instantly hit this issue.
I get lots of ^G symbols as noted in the screenshot above.
My guess is that my font of choice, Iosevka, possibly has a character defined at \x07?
It is definitely true that Iosevka has a no glyph defined at \u00a0 as seen here in the Latin-1 supplement section.
This fixes the issue for me:
let g:NERDTreeNodeDelimiter = "\u00a0"
I am not sure changing the default node delimiter to the BELL character is an ideal choice.
Actually, it was not the font I was using, it was the because I had set conceallevel=0 for the NERDTree file type as follows:
autocmd FileType nerdtree setlocal conceallevel=0
Why did I do that?
I suspect I did it many many years ago to fix an issue where indentLine was being displaying in the NERDTree window. By turning off conceal, I suspect it disabled indentLine just within NERDTree.
I am not seeing any such weird interactions now between indentLine and NERDTree, once I removed that autocmd rule, AND the ugly ^Gs are also gone 馃槃
It may be worth noting that g:NERDTreeNodeDelimiter relies on conceallevel and it is best not to fool around with it for NERDTree.
All good now for me.
It may be worth noting that
g:NERDTreeNodeDelimiterrelies onconcealleveland it is best not to fool around with it for NERDTree.
Duly noted. I'll update the documentation.
Most helpful comment
I resolve the problem.
let g:NERDTreeNodeDelimiter = 'x'
add this in .vimrc.