I've got these mappings in my .vimrc:
nnoremap <C-Tab> :tabn<cr> " cycle tabs nnoremap <C-S-Tab> :tabp<cr> " cycle tabs backward nnoremap <C-J> <C-W><C-J> " no Ctrl-W needed to navigate up nnoremap <C-K> <C-W><C-K> " no Ctrl-W needed to navigate down nnoremap <C-L> <C-W><C-L> " no Ctrl-W needed to navigate right nnoremap <C-H> <C-W><C-H> " no Ctrl-W needed to navigate left
When I use them (e.g. I press CtrlL or CtrlH), they work, but I get a “bong” alert sound.
I get the sound in Windows (GVim 8.1 on Win 10), and in my terminal (Vim 8.1 on CentOS via SecureCRT).
There's no sound when I enter the commands manually (e.g. CtrlW,CtrlL), with or without the
nnoremap in place.
There's no sound when I use those key combos in other programs.
Why is that happening, and how can I stop it?