3

Whenever I try to source ~/.vimrc file when NERDTree is open, I get square brackets around the file icons like so:

square brackets around file icons

Is there a way to get rid of them? Is it a bug?

I have already posted this question on the NERDTree github repo, but have not received any answer yet.

UPDATE: I have opened an issue with the vim-devicons project about this.

  • It seems that it is a predefined functionality. By the image you have posted, I guess square brackets serves like cursor and when you move across, [* ] shows that your cursor is in that file. Does it causes any issue for you? – SibiCoder May 25 '16 at 5:49
  • 2
    Gotcha. Your question made it seem as if you have no idea how the icons got there. You should contact the authors of vim-devicons if you don't want these brackets to be there, as it seems to be the default behavior (see screenshot) – Bart Louwers May 25 '16 at 16:00
3

Putting this in your vimrc should fix the re-source issue:

" after a re-source, fix syntax matching issues (concealing brackets):
if exists('g:loaded_webdevicons')
    call webdevicons#refresh()
endif
  • did not work for me. I tried calling it manually and that did not help (even hardRefresh) – Dorian Dec 31 '17 at 22:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.