Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

heindsight/whitespace.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#whitespace.vim

This plugin provides a commands to highlight or strip extraneous whitespace at the ends of lines.

##Installation

You can use your favourite installation method. With Tim Pope's pathogen it is simply a question of cloning the whitespace.vim repository into your vim bundle directory.

    cd ~/.vim/bundle
    git clone git://github.com/heindsight/whitespace.vim

##Usage

Use the :WSHighlightOn, :WSHighlightOff and :WSHighlightToggle commands to turn on, off or toggle highlighting of whitespace at ends of lines.

Use :WSStrip to remove trailing whitespace from a range of lines:

    :[range]WSStrip

##Customising

Whitespace highlighting uses the ExtraWhitespace highlight group. By default this is linked to the standard Error group. The highlight command can be used to customize highlighting. For example:

    :highlight ExtraWhitespace ctermbg=Green

License

Copyright (c) 2015, Heinrich Kruger. Distributed under the MIT license (see the LICENSE file).

About

Highlight and remove extraneous whitespace

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors