Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

showing single space invisible character in vim

Tags:

vim

I have added set listchars=tab:»\,trail:·,extends:#,nbsp:. for showing invisible characters.

It is working for tab extends but not working for nbsp, I have read the help for :set listchars and tried with examples given there, but still I am not getting dot character for single space character.

what else I have to do for this. Any suggestion.

Thanks

like image 206
Vivek Kumar Avatar asked Oct 10 '12 08:10

Vivek Kumar


1 Answers

Please be careful with the backslashes.

set listchars=tab:>\\,trail:·,extends:#,nbsp:.

This works as expected. However, one should note that nbsp stands for non-breakable space (character 0xA0). It's different from ordinary whitespaces (character 0x20) and in most cases, we'll have to do Ctrl-v x a 0 in insert mode to type it.

like image 91
shinkou Avatar answered Dec 07 '22 14:12

shinkou