8

I'm having some trouble reading vim's documentation on the terminal because I can't follow the links that are given.

I quote:

Jump to a subject: Position the cursor on a tag (e.g. |bars|) and hit CTRL-].

The problem is that i'm using a spanish keyboard where the "+" and the "]" are on the same button so when I hit CTRL-], I make a zoom.

Can I map the CTRL-] to any other keys somehow or is there any other option?

  • Did you try anything? E.g. nnoremap <leader>h <c-]> – VanLaser Oct 28 '15 at 20:13
  • 2
    I use the following mapping: nnoremap <buffer> <cr> <c-]> in ~/.vim/after/ftplugin/help.vim. – Peter Rincker Oct 28 '15 at 21:25
  • I've placed the mappings in my ~/.vimrc file and it still doesn't work – Wylex Oct 29 '15 at 12:42
  • 1
    Maybe CTRL-Shift-]? – blm Oct 29 '15 at 16:52
  • It works fine. Thanks, I can jump now from tag to tag easily. @blm – Wylex Oct 29 '15 at 17:39
3

One option (if you don't mind a bit of typing) is to type :tag tagname and press enter. This is exactly equivalent to Ctrl-] according to :help CTRL-].

If you use this, please note that you can use tab completion just as when typing :help topic commands, and you can use Ctrl-D to list the possible autocompletions of what you've typed so far.

I admit this isn't much of an alternative, but it's worth knowing.

3

Another option is using clicking on the tag, if set mouse=a is on.

  • 1
    It does work but I'd prefer not having to use the mouse. – Wylex Oct 29 '15 at 12:38
1

For those having french AZERTY keyboard, try

CTRL + $ ($,£,¤ key)

  • > For those having french AZERTY keyboard, try > CTRL + $ ($,£,¤ key) How come?? – Abd Jun 16 at 21:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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