Live data from Hacker News

Vim: Spacebar as leader key, CapsLock as Esc

karmanebula.com

41–44 of 44 posts

Re: Vim: Spacebar as leader key, CapsLock as Esc

#41
post #15
post #6

I use as my Easymotion leader.. https://github.com/Lokaltog/vim-easymotion it's well worth a look, gives you super quick fine grained movement similarly inoremap jj to take you from INSERT mode to NORMAL mode is nice

I've been using inoremap jk for a long time now, and it works like a charm.

Likewise. Started with 'jj', but 'jk' is significantly faster. Only downside is that you can't actually type 'jk'. Now everybody thinks I'm serious all the time.

Re: Vim: Spacebar as leader key, CapsLock as Esc

#42
post #23
post #6

I use as my Easymotion leader.. https://github.com/Lokaltog/vim-easymotion it's well worth a look, gives you super quick fine grained movement similarly inoremap jj to take you from INSERT mode to NORMAL mode is nice

jj is great, I also use ; as : to save a key press on a very common command

I used `;` remapped to `:` for some time as well, but native functionality of `;` is just too awesome!

Re: Vim: Spacebar as leader key, CapsLock as Esc

#43
post #15

Earlier quoted context omitted.

I've been using inoremap jk for a long time now, and it works like a charm.

Likewise. Started with 'jj', but 'jk' is significantly faster. Only downside is that you can't actually type 'jk'. Now everybody thinks I'm serious all the time.

twiddle with the timing settings (I forget). So typing 'jk' only very quickly indeed will register as ESC.

Re: Vim: Spacebar as leader key, CapsLock as Esc

#44
post #14

Love spacebar as the leader key, but not a fan of CapsLock as Esc. CapsLock as Ctrl is better. For one, you never have to stretch for the real Ctrl, and two, you can use it for escape as well: Ctrl-[

> and two, you can use it for escape as well: Ctrl-[

Sadly, not (sanely) with a Norwegian keyboard layout. We "only" have one key left of z, namely "") -- and not really any keys right of "l" and "p" -- right home-row is "jklø" followed by "æ", and "å" is right of "p".

Way out in the cold by the enter key we have "'" (shift for "*"), and the not-so-useful composing '"' (and "^~" with shift/alt-gr respectively).

If only we could stick to something like romaji'zed Japaneze, we'd have plenty of keys left over! ;-)

Post reply on HN