On Fri, Jan 13, 2017 at 6:31 PM, Eduardo Sousa
<[email protected]> wrote:
> When I'm using a portuguese keyboard layout, and I press <C-]>, vim
> identifies it as <C-\>, which makes me unable to navigate help files using
> this kind of keyboards

Finding a specific control key for a nonalphabetic character on a
keyboard for a language other than English is not always obvious.
Hitting Ctrl together with whatever it is that you hit to get ] will
not necessarily get you the 0x1D byte which means Ctrl-] for Vim. For
instance, on my Belgian keyboard, ] is AltGr-$ and Ctrl-] is not
Ctrl-$ but Ctrl-AltGr-$

But even if you don't know what to hit to get something that Vim will
interpret as Ctrl-], there is an easy workaround, as follows:

      map <F9> <C-]>
      map! <F9> <C-]>

By adding the above two lines to your vimrc then restarting Vim,
hitting F9 will give you what Ctrl-] is supposed to do, i.e., follow a
help link or find a tag in Normal mode, and teminate an abbreviation
in Insert or Command-line mode. (Of course if F9 is already taken you
can use any other key, preferably some F or Shift-F key.)


Best regards,
Tony.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui