Skip to content

fix: correct command mentioned in docs #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This plugin will highlight trailing whitespace at the end of the line. This is d
* Places the cursor back where is started
* Resets the search highlight back to what it was

TrailerTrash defines a `:TrailerToggle` command to stop showing unwanted whitespace, for those projects where you don't want to start fighting it.
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.

Expand Down Expand Up @@ -41,7 +41,7 @@ For example, you can set the background of all trailing trash to red with the fo

In most cases, if you want to hide the highlighting you can simply call `:TrailerHide`, and toggle it back on at any time.

If you want something more extreme, and want stop the underlying mechnism from working all together you can clear the `2match` in vim:
If you want something more extreme, and want to stop the underlying mechanism from working all together you can clear the `2match` in vim:

TrailerTrash uses `2match` ([vimdoc](http://vimdoc.sourceforge.net/htmldoc/pattern.html#match-highlight)) to define a highlight pattern. If you would like to disable it you can call `2match none`. This works great in plugins that provide you a hook to customize buffers, such as Unite's `unite_settings()`

Expand Down