vim_current_word icon indicating copy to clipboard operation
vim_current_word copied to clipboard

This plugin will highlight `I爱U` as a word, but vim's motion regard it as 3 words.

Open sisrfeng opened this issue 3 years ago • 3 comments

Helps predict how vim word movements (w, e, b) will behave Plays well with * and #

However, this plugin will highlight I爱U as a word, ( because @ is in iskeyword? I-U will not be highlighted as a word ,because - is not in my iskeyword (iskeyword=@,48-57,_) . ) But nvim' s word motions, e.g., w , *, and # regard I爱U as 3 words.

sisrfeng avatar Feb 23 '22 01:02 sisrfeng

because @ is in iskeyword

Yes, matchadd('CurrentWord', '\k*\%#\k*', ...) respect iskeyword, so if @ is in keyword, it is a normal behaviour.

Freed-Wu avatar Oct 12 '23 13:10 Freed-Wu

Is it possible to make the behavior of highlight match the behavior of motion ? E.g., highlight I爱U as a word and have a key which can move to the next or previouw I爱U ?

sisrfeng avatar Oct 16 '23 01:10 sisrfeng

have a key which can move to the next or previous

Currently, this plugin doesn't have any keys.

Freed-Wu avatar Oct 16 '23 01:10 Freed-Wu