qxxxb / vim-searchhi

Highlight the current search result differently
GNU General Public License v3.0
47 stars 6 forks source link

fix(autocommands): Fix Cannot define autocommands for ALL events error #21

Closed bentilley closed 2 years ago

bentilley commented 2 years ago

Defining autocommands for all events is no longer allowed in vim 8.

See this patch: https://github.com/vim/vim/commit/9a046fd08bcae319d39a4dbde2be81decee19013

Solution here is to only add the custom autocommands if the searchhi config variables are defined.

qxxxb commented 2 years ago

Thanks, I implemented this change in 6d3d595e84f12b2086b1c77db39da219c1736aa6 with some minor changes ☺