Monday, December 9, 2013

Re: how to remap ';' key, without affacting/slowing down its original function?

On 2013-12-09 18:39, ping song wrote:
> I'm looking at my keyboard for any un-used but still good keys left
> for my own maps
>
> I know ; was by default used as a repeat movement key.
[snip]
> plus, I already used comma key (,) as leading key of my own, but I
> just ran out of it (about 30)..

It depends entirely on your usage patterns. The default <leader> is
the backslash ("\") which is unused by default. Both "," and ";"
have out-of-the-box functionality that I use on a regular basis. If
you don't use them, then you're welcome to remap them.

Other good candidates are keys that have multiple keys for the same
functionality such as "+" and <enter>, and I've never found the
default functionality of "_" to provide any benefit beyond
"+"/<enter>

Also, <F1> through <F{N}> are unused, as are Alt+{key}, though
in insert-mode, Alt+{key} can produce accented chars (and
vice-versa...if you enter an upper-ASCII character, it can trigger
Alt+{key} mappings). In most modern environments, both sets of
characters are well supported. I tend to eschew them mostly because
I'm a bit of a dinosaur who was burnt too frequently on old
incompatible terminals where neither Fn nor Alt+{key} (nor arrows,
nor pgup/pgdn/home/end) worked reliably without fiddling with
settings on both ends. So I just gave up. I'm sure it's much better
now. :-)

-tim



--
--
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/groups/opt_out.

No comments: