I'm using vim-visualstar with vim-highlightedyank. I noticed that * on visual mode highlighted the search text as yanked. This was because normal! y triggered TextYankPost autocmd event and vim-highlightedyank hooked the event.
To prevent the unexpected autocmd event, I prefixed :noautocmd at :normal! command.
I'm using vim-visualstar with vim-highlightedyank. I noticed that
*
on visual mode highlighted the search text as yanked. This was becausenormal! y
triggeredTextYankPost
autocmd event and vim-highlightedyank hooked the event.To prevent the unexpected autocmd event, I prefixed
:noautocmd
at:normal!
command.