This is a noob attempt of mine, to remove trailing spaces in a file. The first attempt is:
It worked, and I was happy. Then I tried it on a single line where there was no trailing whitespace using normal mode command
Not too surprisingly, this deleted the last valid,non-blank character of the line since there is no trailing whitespace on this line.
Now my question is this -
why did my first command succeed on all lines?
(it did not delete the last non-blank characters on all those lines with no trailing whitespace)