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

WhiteWash : Remove excess white space.

 script karma  Rating 3/3, Downloaded by 443    Comments, bugs, improvements  Vim wiki

created by
Michael O'Neill
script type
* Strips visible ^M's from the end of lines.
* Removes white space at the end of lines.
* Removes sequential white space between words.
* Ignores white space at the beginning of a line (to preserve indents).

* WhiteWash_Aggressive - Causes aggressive behavior by default.

* WhiteWash() - Strips trailing ^M's, trailing white space, and Calls WhiteWashLazy or WhiteWashAggressive based on user preferences.
* WhiteWashLazy() - Removes sequential white space between word characters, but not between punctuation.
* WhiteWashAggressive() - Removes sequential white space anywhere but the beginning of a line.
install details
Place WhiteWash.vim in your plugin directory.
Add g:WhiteWash_Aggressive=1 to your .vimrc to make WhiteWash use its aggressive behavior by default.

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
WhiteWash.vim 1.2 2014-09-08 7.3 Michael O'Neill Add WhiteWashTrailing function and command
- Allow users to call :WhiteWashTrailing to clean only whitespace at the end of lines.
- Stop trying to handle trailing ^Ms. This is caused by using the DOS file format when one should be using the Unix format.
- Remove the space between the words white and space (oh, the irony).
WhiteWash.vim 0.11 2012-02-03 7.3 Michael O'Neill Add GetLatestVimScript support.
WhiteWash.vim 0.1 2012-02-03 7.3 Michael O'Neill 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