bronson / vim-trailing-whitespace

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

Error because of the event name `TerminalOpen` on NeoVim (v0.8.3) #29

Closed uniglot closed 1 year ago

uniglot commented 1 year ago

Hi,

I've been using this plugin quite a long time, but recently I ran into a weird problem complaining like:

Screenshot 2023-02-18 at 15 29 12

I think this error must be related to a recent PR (https://github.com/bronson/vim-trailing-whitespace/pull/27), and I suspect that the event name is called differently between Vim and NeoVim.

Is it possible to designate different event names along the different descendants of Vi?

Thank You!

uniglot commented 1 year ago

26 seems to be closely related to (or the same with) my issue. I'll leave it as open but if you feel this issue is redundant, please feel free to close it.

nusendra commented 1 year ago

I got this issue too.

snipem commented 1 year ago

Here is the same error but as text in case any one searches for it:

Error detected while processing /Users/xxx/.vim/plugged/vim-trailing-whitespace/plugin/trailing-whitespace.vim:
line   19:
E216: No such group or event: TerminalOpen * if ShouldMatchWhitespace() | match ExtraWhitespace /\\\@<![\u3000[:space:]]\+$/ | else | match ExtraWhitespace /^^/ | endif
PabloScolpino commented 1 year ago

This is a duplicate of #26

PabloScolpino commented 1 year ago

PR #30 should Fix this issue.

bronson commented 1 year ago

Closing because #30 is in. Reopen if you still see an issue.

nidico commented 1 year ago

It's fixed for me, thanks!