I'm trying to set up ctags with Vim. Ctrl-] is supposed to jump to a tag under the cursor. (issuing a :ta the word 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

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

1 Answer 1


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.

  • 1
    Ctrl+¨ seems to do the trick
    – nos
    Commented Oct 4, 2010 at 17:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .