Last Updated: February 25, 2016
·
1.918K
· pjambet

Highlight invisible chars in vim

set listchars=tab:▸\ ,eol:¬,trail:~,extends:>,precedes:<,nbsp:•

highlight NonText guifg=#4a4a59
highlight SpecialKey guifg=white guibg=#cc0000

2 Responses
Add your response

over 1 year ago ·

I use this to match the way TextMate does it:

set listchars=tab:▶-,trail:•,extends:»,precedes:«,eol:¬

Since I'm using solarized color set they all come through as having a very noticeable red background, so I can avoid trailing spaces and odd tabs.

over 1 year ago ·