whitespace in vim

vim_whitespace

So one thing that’s annoyed me about my recent switch to vim, is the lack of any easy way to show all whitespace/invisible characters. “set list” is a great start, but I really want to see ALL invisibles, even spaces, which seems pretty much impossible in vim.

So for now I’ve settled on just showing tabs, eol, etc. at least this makes it so if something looks like a space, it is almost certainly just a plain space.

If you want to mimick this setup, add the following two lines to your .vimrc

au BufNewFile,BufRead *.* set list listchars=eol:¬,tab:\▸\ ,trail:~,extends:>,precedes:<