Open nntrn opened 11 months ago
:%s/\s\+$//e
"Remove all trailing whitespace by pressing F5 nnoremap <F5> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar><CR>
Strip trailing whitespace
Use a keybinding to strip all trailing whitespace