Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vim CTRL-] keys not working

Tags:

vim

ctrl

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?

like image 411
lompy Avatar asked Jul 19 '12 14:07

lompy


2 Answers

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
like image 71
Glabsounet Avatar answered Sep 21 '22 18:09

Glabsounet


I have the same issue, and :verbose did not bring up anything useful. What I figured out is that Ctrl-+ takes me there.

Please note that I am using a German keyboard where the plus sign sits at the position of square bracket on a US keyboard. Maybe the code only looks at the location of the key (I remember reading something to that respect in combination with the Ctrl-key).

like image 21
Dominik Avatar answered Sep 21 '22 18:09

Dominik