Hot tip for vim users: highlight spaces at end of lines

Daniel Robertson danlrobertson89 at
Thu Dec 31 09:53:03 PST 2015

In light of Norbert's comment maybe add *.cxx *.hxx

augroup trailing_whitespace
    autocmd BufWritePre *.cxx :%s/\s\+$//e
    autocmd BufWritePre *.hxx :%s/\s\+$//e
augroup END

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <>

More information about the LibreOffice mailing list