3 Comments

This was a great tip, but the 'set listchars' suggestion didn't work for me until I also added 'set list'.

Expand full comment

Could use winsaveview() and winrestview() to restore cursor position.

Expand full comment

As an example of a filetype that has meaningful trailing whitespace:

In Markdown two trailing spaces adds a newline.

Expand full comment