Besides F1, F2, F3, (Ctrl + Fs and so on), which are good (available) keys to create custom commands on Vim?
Some plugins use , and \. For instance, \be
and ,cc
. Which are other开发者_开发问答 good available keys to create custom commands on Vim?
I'm a fan of using <Leader>
in all my custom maps. That way I can easily avoid stomping on default mappings, and I can quickly change my mapleader
whenever I want/need to.
Personally I have remapped my
CAPSLOCK
as CTRL
and for vim
imap jk <ESC>
The last trick has helped me a lot. I dont have to lift my fingers to get out from normal mode
to insert mode
.
And it works both ways, jk
in normal mode
is an innocent combination - move down one, move up one
. So by remapping jk
as ESC
you're not losing out anything.
Since the ESC key is the most used key in vim it beneficial to have it mapped somewhere else.
I've seen others used Ctrl+[, jj, ;; and for a secondary ESC key
imap jj <ESC>
imap ;; <ESC>
精彩评论