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

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


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

augroup trailing_whitespace
    autocmd!
    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: <http://lists.freedesktop.org/archives/libreoffice/attachments/20151231/f37442be/attachment.sig>


More information about the LibreOffice mailing list