Re:To Master Vim, Use It Like Language
by bonquesha99 on Friday October 02, 2015 @12:01AM
(#10316672)
I have a similar remapping of Caps:
* When I tap Caps, it's `<esc>`
* When I hold Caps OR hit it in combination with any other key, it's `<ctrl>`
It really feels like the best of both worlds. I primarily develop on OSX, so I use https://pqrs.org/osx/karabiner/ to handle the remapping.This works great on my Linux machine. On the Mac though I hate that all Mac apps use Command for well, all command-key combinations instead of Ctrl, so I map the Caps-lock to Command instead, but while Karabiner can do the dual "Esc on tap plus other on hold" for Ctrl, Shift and Option keys, it cannot frustratingly do it for the Command key. ITerm can switch caps-lock back to Ctrl, but then I lose the Esc double function. It's maddening.
Oh man I had no idea Karabiner could do that. Thanks!
Re:To Master Vim, Use It Like Language
by cryptonaut on Thursday October 01, 2015 @10:07PM
(#10316214)
Was just about to post this. Though I map Caps-Lock to Esc through xmodmap so it works everywhere instead of just in Vim.
I'd actually like to map Caps-Lock to ESC as well, but I'd prefer to make it vim-specific rather than system-specific, and there's no way to do that :(.
I have this too, but it can be infuriating when:
* I have to quickly explain something on my colleagues machine. * A colleague wants to show me something on my machine.
The `<esc>` is, I daresay, one of the most ingrained keys when operating a computer. When you keep mistyping it, levels of stress will go up.
Edit now that I have actually looked at the article: Yes, you can map it to Control but for me it's an awkward place to put a modifier. What if you want to do Ctrl-A? Ctrl-C? At least the way I type, I'm better off using the one in the corner.