muirbot
muirbot

Reputation: 2081

Why can't I get vim-better-whitespace to highlight trailing whitespace for me?

I've confirmed that I've installed the plugin, and commands such as :StripWhitespace work fine. For some reason, I just can't get trailing whitespace highlighted.

All my vim files, including the git submodule for vim-better-whitespace, are in a public repo here: https://github.com/AnselAtoms/dev_env

Upvotes: 0

Views: 806

Answers (1)

Peter Rincker
Peter Rincker

Reputation: 45107

There could be a few issues:

  • You may have to enable the plugin via :ToggleWhitespace
  • The highlight group that the plugin uses may be blending in with your colorscheme or may not be providing a color for your terminal's color depth. Try using: hi ExtraWhitespace guibg=#990000 ctermbg=red. See :h :hi for more highlight information.

The vim-better-whitespace homepage for more information on how to setup and use the plugin. You can also use :h better-whitespace.

Upvotes: 2

Related Questions