vim CTRL-] keys not working

lompy picture lompy · Jul 19, 2012 · Viewed 23.1k times · Source

Hi I'm new to vim and I'm stuck. In :help tag it says that one can go to a tag definition using the CTRL-] keystroke. But I can't get this to work. I thought I messed some mappings with my plugins, so I cleaned .vimrc. But I still get cursor to a tag word (in help for example). I strike Ctrl and ] simultaneously and nothing happens.

Does anybody know how to fix it? Or maybe I'm reading :help wrong?

Answer

Glabsounet picture Glabsounet · Jul 19, 2012

First, use the :verbose command (thanks to sehe) to know who rebound your key where.

:verbose nmap <C-]>

Then, if you cannot find where your key was rebound, bind yourCtrl-] key by the original one then retry:

:nnoremap <C-]> <C-]>

For more info:

:help mapping
:help :verbose
:help :noremap