Saturday, September 24, 2016

Re: mapping :h to ;

On Sat, Sep 24, 2016 at 8:02 AM, <info@odyschrift.nl> wrote:
> I am a novice in gVim. I often need the help function. <shift>:h<space>. I understand I can map this combination of 4 keystrokes to a single key.
> Is ; a good choice?
>
> The website <http://vimcasts.org/blog/2013/02/habit-breaking-habit-making/ attracted my attention, thanks to a recent post in this maillist. I understand ; is useful to repeat a character search with t,T,f,F for my period as novice.
>
> I think the best decision is to use ; for the time being, but according to the article j and k are also could alternatives. What about h and l?
>
> Has someone an advice for me?
>
> Alle

Which keys to use as the {lhs} of a mapping depends on your keyboard
layout and on which keys are already mapped. I recommend to use keys
which don't already mean something to Vim, but which it still can
receive from the keyboard driver or the window manager, and that is
not always obvious. Here are a few hints:

- In most cases, it is safe to use the F and Shift-F "function" keys
with the exception of <F1> (Help) and sometimes of <F10> (Menu)
- If you have non-ASCII printing characters on your keyboard, you can
use them too. For instance, my Belgian keyboard (shown at
http://users.skynet.be/antoine.mechelynck/other/keybbe.htm ) includes
é § è ç à ù £ µ ² and ³ plus dead-key circumflex,
dead-key-diaeresis-or-umlaut, and quite a number of special AltGr
combinations.


Best regards,
Tony.

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: