login or register |
Annoyed by trailing whitespace? In Vim, to find it:
/\s\+$, then cycle thru matches with
n and delete, if appropriate, with
:set hlsearch may help. Alternatively, if you are totally sure that no trailing whitespace is ever wanted in your code:
:%s/\s\+$//. Finally, if you want to visually indicate trailing whitespace using Vim's syntax highlighting:
:syn match TRAILING_WS "\s\+$"
:hi link TRAILING_WS Error
echo earlZstrainYat|tr ZY @.
• online for 6835 days
• c'est un vanilla site