" Remove any trailing whitespace that is in the file
autocmd BufRead,BufWrite * if ! &bin | silent! %s/\s\+$//ge | endif
which has some advantages (described in the README)
This plugin is better than using the builtin vim 'list' command because it doesn't show an annoying highlight while you are typing in insert mode at the end of a line.
set list set listchars=trail:•
In general, explore `help list`.
" Remove any trailing whitespace that is in the file
autocmd BufRead,BufWrite * if ! &bin | silent! %s/\s\+$//ge | endif