RRethy / vim-illuminate

illuminate.vim - (Neo)Vim plugin for automatically highlighting other uses of the word under the cursor using either LSP, Tree-sitter, or regex matching.
2.16k stars 47 forks source link

Don't use list splicing for Vim prior to 800 #24

Closed RRethy closed 5 years ago

Khadmium commented 5 years ago

Maybe it will suffice to check if character under cursor matches '\k' after getting current word by expand('')? You could use also strpart function.

RRethy commented 5 years ago

@Khadmium can you take a look at https://github.com/RRethy/vim-illuminate/pull/29 and if you have an older version of Vim can you try manual testing it to see if it works. It's a hassle for me to switch my Vim version. Thank you.