sponsor Vim development Vim logo Vim Book Ad

Trailer Trash : Highlight trailing white space

 script karma  Rating 11/4, Downloaded by 324    Comments, bugs, improvements  Vim wiki

created by
Christopher Sexton
 
script type
syntax
 
description
Highlight and eradicate whitespace at the end of the line in Vim.

This plugin will highlight trailing whitespace at the end of the line. This is done in a polite way:

* You are not currently editing that line (prevents highlighting it as you type)
* You are not in insert mode

It also introduces a :Trim command that will strip all the trailing white space from a file (or range). This is done in a polite way:

* Places the cursor back where is started
* Resets the search highlight back to what it was

TrailerTrash defines `a :Trailer` command to stop showing unwanted whitespace, for those projects where you don't want to start fighting it.

As always, Trailer Trash is polite.

The source is on github here: https://github.com/csexton/trailertrash.vim
 
install details
Copy trailertrash.vim to VIM_HOME/plugins/ or use pathogen.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
trailertrash.vim 2.0 2013-08-15 7.0 Christopher Sexton Added support for ranges and a "b:show_trailertrash" variable for disabling it with autocmds.
trailertrash.vim 1.0 2012-02-15 7.0 Christopher Sexton Initial upload
ip used for rating: 54.82.121.218

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