I'm trying to set up ctags with vim. CTRL-] is supposed to jump to a tag under the cursor. (issuing a :ta theword works fine)

I'm not sure what to press when using a Swedish keyboard. To get a ] , I'll have to press Alt Gr-9 , however CTRL-Alt Gr-9 does not work. Any help ?

Here's the keyboard layout:

enter image description here

link|improve this question

1  
What platform and terminal? – ak2 Oct 3 '10 at 19:21
Fedora 13, gnome-terminal. Or win7 and putty to that same feodra 13 box (or a CentOS 5) – nos Oct 3 '10 at 23:21
feedback

1 Answer

up vote 2 down vote accepted

The following work both in gnome-terminal and in PuTTY, both with the Swedish keyboard layout:

  • Ctrl+5: This one comes from xterm, whereby the reasoning appears to be that the octal ASCII code for ^] is 035 (note the 5), so for example Ctrl+6 is ^^ (036).
  • Ctrl+¨ (the key to the right of the Å): The even more tenuous reason here is that the US keyboard layout has the ] in that position.

In Cygwin's mintty, your initial idea of Ctrl+AltGr+9 does actually work. It also sends ^] for the Pause key.

link|improve this answer
1  
Ctrl+¨ seems to do the trick – nos Oct 4 '10 at 17:35
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.