Hacker News new | ask | show | jobs
by davefp 2362 days ago
Capslock is an Escape key for me because I use Vim a lot. I've heard lots of tmux users map it to Control and then configure tmux to use Ctrl+a as the activation mapping, which sounds very useful too.
2 comments

I set my keyboard to tap Capslock for ESC or hold for CTRL. Seems like the best of both worlds.
Agreed. For anyone else wanting to try this:

linux: github.com/alols/xcape windows: github.com/ililim/dual-key-remap mac: karabiner

as always, Miley Cyrus is right.

I use this mapping in my current setup and find it really useful.

I have “fd” set to return me to normal mode. I picked this up from Spacemacs, and I actually like it a lot. I even set it up in IntelliJ.

Now my capslock is Ctrl. I find that combo to be particularly effective for me.

A default vim mapping is CTRL+[ I use that a lot as it requires the smallest motion of my hands. The fd seems pretty cool as that's even a smaller change. How do you set that in your .vimrc?
I use to use “jk” for this. I stopped because several vim emulators, evil specifically, did not support this.
Evil does support this, I use it every day. (Or rather, evil-escape is a plug-in I use that makes this setup very simple)