To show invisible characters:
:set list
To hide invisible characters:
:set nolist
To toggle between showing and hiding invisible characters:
:set list!
| Symbol | Character |
|---|---|
| ^I | Tab |
| $ | New Line |
To set the tab character to **> ** and the new line character to ¬
set listchars=tab:>\ ,eol:¬
To set the spaces to _
set listchars=spaces
To see a list of character options
:help listchars