Grimoire-
Command
.es

GNU+Linux command memo

Vim, no space at end of line

surligner et supprimer les espaces en fin de ligne.

match ErrorMsg '\s\+$' (1)
autocmd BufWritePre * :%s/\s\+$//e (2)
1 If added to .vimrc : show spaces at end of line
2 If added to .vimrc : automatically remove spaces at end of line while saving the document.