You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dots appearing to the right of icons in NerdTree #84
I'm seeing "dots" immediately to the right of the icons in NERDTree and it looks as if the dots partially cut off the right edge of the image. Any idea what's going on here? I do not see the dots when I don't have the devicons plugin loaded. Font in use here is patched "Sauce Code Pro", but I see the same results with any font (including unpatched fonts).
My vimrc is here. I see this in both MacVim and Neovim (terminal). Running the latest/very recent of everything: NVIM 0.0.0-alpha+201507221531 (compiled Jul 22 2015 21:29:54), VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jun 15 2015 08:44:52) MacOS X (unix) version Included patches: 1-712; All plugins current as of today.
Ah! Doing a ga made the problem obvious: < > 160, \240, U+00A0 NO-BREAK SPACE, ^KNS, …and in my vimrc: let &listchars = "tab:>-,trail:\u2591,extends:>,precedes:<,nbsp:\u00b7"
Disabling the special character for nbsp resolved the issue. Thx for pointing me in the right direction.
If there's a better choice than NBSP I'm not aware of one. I think your usage is fine (and probably 99% of users aren't setting a listchar for nbsp like I was—and I wasn't really in need of that listchar anyway, so I'm not bothered by unsetting it).
Activity
ryanoasis commentedon Jul 25, 2015
Hmm that is odd. Can you see what char code it gives when you highlight with cursor and enter
ga?You should see the hex and octal value.
I did add a display hack fix that adds a supposedly empty character that helps with glyphs being cut off but possibly on your system that char is not blank: https://github.com/ryanoasis/vim-devicons/blob/master/plugin/webdevicons.vim#L533-L537
rdlugosz commentedon Jul 30, 2015
Ah! Doing a
gamade the problem obvious:< > 160, \240, U+00A0 NO-BREAK SPACE, ^KNS, …and in my vimrc:let &listchars = "tab:>-,trail:\u2591,extends:>,precedes:<,nbsp:\u00b7"Disabling the special character for
nbspresolved the issue. Thx for pointing me in the right direction.ryanoasis commentedon Jul 30, 2015
@rdlugosz Awesome! 🎉 Glad you were able to find the reason and resolve.
Do you think using
NO-BREAK SPACEas a hack fix character is a bad idea? Should we use something else?rdlugosz commentedon Aug 2, 2015
If there's a better choice than NBSP I'm not aware of one. I think your usage is fine (and probably 99% of users aren't setting a listchar for nbsp like I was—and I wasn't really in need of that listchar anyway, so I'm not bothered by unsetting it).