sponsor Vim development Vim logo go to HTTPS page Vim Book Ad

better-whitespace : A better whitespace highlighter for Vim

 script karma  Rating 47/16, Downloaded by 749    Comments, bugs, improvements  Vim wiki

created by
Nate Peterson
script type
This plugin causes all trailing whitespace characters (spaces and tabs) to be highlighted.
Whitespace for the current line will not be highlighted while in insert mode.
It is possible to disable current line highlighting while in other modes as well.
A helper function ':StripWhitespace' is also provided to make whitespace cleaning painless.

Check out a screenshot: http://i.imgur.com/St7yHth.png
More are screenshots available at the Github repository below.

See further documentation at its Github repository:
install details
There are a few ways you can go about installing this plugin:

1.  If you have Vundle you can simply add: Bundle 'ntpeters/vim-better-whitespace' to your .vimrc file then run: ":BundleInstall"

2.  If you are using Pathogen, you can just run the following command: "git clone git://github.com/ntpeters/vim-better-whitespace.git ~/.vim/bundle/"

3.  While this plugin can also be installed by copying its contents into your "~/.vim/" directory, I would highly recommend using one of the above methods as they make managing your Vim plugins painless.

Rating scripts is only available on the HTTPS page

script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
better-whitespace.tar.gz 1.2 2017-01-15 7.2 Nate Peterson Features:
- Support all unicode whitespace characters
- Per buffer enable/disable
- Verbose output option

- Do not clear all matches. Only clear this match group.
- Enable/disable across all windows
- Blacklist file types 'diff', 'gitcomment', 'unite', 'qf', 'help', 'markdown' by default
- Reset highlight group after color scheme changes
- Remove redundant autocommand events
better-whitespace.tar.gz 1.1.0 2014-06-21 7.2 Nate Peterson Add ability to blacklist certain file types.
better-whitespace.tar.gz 1.0.2 2014-02-12 7.2 Nate Peterson Minor update to ensure loading of autocommands on initial script load.
better-whitespace.tar.gz 1.0.1 2014-02-10 7.2 Nate Peterson Readme and documentation updates
better-whitespace.tar.gz 1.0 2014-02-09 7.2 Nate Peterson Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
SourceForge.net Logo