Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|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

2 Answers 2

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.

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

On a Mac with a Swedish keyboard (Swedish Pro layout) <C-å> worked, while none of the combinations ak2 mentioned did.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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