bronson / vim-trailing-whitespace

Highlights trailing whitespace in red and provides :FixWhitespace to fix it.
453 stars 62 forks source link

trailing-whitespaces is highlighting spaces in leaderguide #22

Closed ScrumpyJack closed 4 years ago

ScrumpyJack commented 4 years ago

Since pulling the latest version into vim, trailing-whitespaces highlights trailing white spaces in leaderguide, which is a bit ugly.

Is there a way I can stop this from happening?

leaderguide
bronson commented 4 years ago

Yes, this is due https://github.com/bronson/vim-trailing-whitespace/commit/b5289251ae8f93473febdcf2fd10e39a8287d9fd. And it will affect more than just leaderguide... Reverting.

@ZwodahS do you have an idea for a DefX fix that doesn't affect buffers like these?

bronson commented 4 years ago

Thanks for pointing this out.

ZwodahS commented 4 years ago

How I solve this for defx is to include it in the ignored list let g:extra_whitespace_ignored_filetypes = ['defx']

I think the plugin wasn't triggered for these filetypes previously, hence they are showing up now.

ZwodahS commented 4 years ago

@bronson not sure if you are intending to merge my commit in, but I also added BufEnter, as also it reset the highlight in Defx(and other buffers). I will maintain my own fork for now =)

https://github.com/ZwodahS/vim-trailing-whitespace/commit/87929b3b5fbe974ffa4260d1dfc357b3053411d2