Vim configuration suggestion

I was chatting with someone about vim, and they told me that they added this to their vim config

set list
set listchars=tab:→\ ,nbsp:•

That way, when copy pasting code from a browser and the non breaking space gets in there it shows.

I had a problem with the non breaking space - i was pasting code from efl documentation, gcc kept saying "unexpected error", and i was confused as to why this space was causing my program not to compile lol.

this way the nbsp shows up as • instead of just a space, and the tab shows up as →.