Saturday, September 24, 2016

Re: mapping :h to ;

On Fri, 23 Sep 2016 23:02:04 -0700 (PDT)
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?

No, ";" is used to repeat "f", "F", "t", or "T" search. See :help ;

A better choice is <F1> since it is help on many other apps.

:nnoremap <F1> :help<space>

The default mapping for <F1> is :help<CR> which brings up the
general help file, help.txt

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

Post a Comment