I am trying to find out the word count in selected text in neovim. For some reason, g_ctrl-g
works perfectly fine in normal mode, but when I try it in visual mode after selecting some text, nothing happens. I have confirmed that the key combo has not been remapped to anything else.
I don't know how to diagnose the problem. My config is heavily modified now but I based it on https://github.com/nvim-lua/kickstart.nvim.
Any suggestions would be appreciated.
:set cmdheight=2
. What is the result of:verbose vmap g<C-g>
? Does it work when you start Neovim withnvim -u NONE -i NONE
or withnvim --clean
?cmdheight
to 2 shows it above-- VISUAL --
. Withnvim --clean
it shows briefly instead of-- VISUAL --
without modifying thecmdheight
. I assume this is because of some plugin?showmode
on in Vim, v_g_CTRL-G stays for several seconds for mewhich-key
. Upgrading it seems to have solved it.