Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Highlights whitespace at the end of lines, only in modifiable buffers
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.


bad-whitespace - Highlights whitespace at the end of lines

Author:  Bit Connor <>
Version: 0.3

Get the latest version at:

Inspired by the trailing-whitespace script:

Additional References:

About ~

This plugin highlights whitespace at the end of lines with a red color.

You can erase the bad whitespace with the command |EraseBadWhitespace|

You can manually toggle the highlighting for the current buffer with the
commands |ShowBadWhitespace| |HideBadWhitespace| |ToggleBadWhitespace|

This plugin is better than using the builtin vim 'list' command because it
doesn't show an annoying highlight while you are typing in insert mode at the
end of a line.

This plugin is better than competing plugins because it doesn't show
highlighting in buffers that are not modifiable, which is usually what you
want. This makes it compatible with UI buffers that happen to contain bad
whitespace, such as the quickfix window, or the fugitive plugin.
Something went wrong with that request. Please try again.