Search code examples
vimctrl

vim CTRL-] keys isn't functioning as expected


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.

How to fix it? Or maybe I'm reading :help wrong?


Solution

  • 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