Running Neovim 0.9, I have this mapping:
nnoremap <silent> <leader>l :<c-u>let @/ = '\<'.expand('<cword>').'\>'\|set hlsearch<CR>wb
which is a shortcut to highlight search the whole word under cursor. The problem is that it doesn't display the matched pattern count (the e.g. [5/20]
count at the bottom right of the window). How can I trigger this mapping to also display the count? Or how can I implement a different mapping that highlights the current word under cursor without causing the screen to jump (e.g. not with *
or #
)