Add vi modelines.
Strip trailing whitespace.