I do have an inefficiency: I move my hand for the escape key (which I should remap to caps lock, but I've never gotten around to it in the past decade), but I pivot at the elbow. It's far less awkward.
I do have an inefficiency: I move my hand for the escape key (which I should remap to caps lock, but I've never gotten around to it in the past decade), but I pivot at the elbow. It's far less awkward.
inoremap jj <Esc>
In insert mode you just press j twice and you get out of insert mode. This is my favorite key remap in vim.
You can put that in your .vimrc file or just try it out from the command bar.
I'm not sure why, but I found it to be more fluid for me?
Same solution here. This favors people who tend to move from top to bottom during skimming a piece of code utilizing the j-key to move further down, which then let's you automagically exit EDIT-mode. Happens to me every fourth/fifth time.
Earlier it was more often. However, as skills develop I increasingly rarely use the hjkl-keys.
These days vim is placed at the end of a git/grep toolchain and most likely I tend to "/\v" for something or move more like "45j" directly to the place in focus (relativenumbers are your friend). Being in a row the natural tendency now is to jump with "f" or "F" and repeating with ";" if necessary.
If you passed this milestone already, your opinion is highly welcome!
larger moves are a mix of the {}() and /\v if I know what I am looking for by name. c-f c-b is nice if I am just browsing the code.
https://github.com/alols/xcape
now capslock does both ctrl and escape
best settings ever!
I've dealt with this by switching ctrl and alt - I find hitting alt with my thumb is far less strenuous than reaching for ctrl with my pinky.
I may give xcape a shot, however.
Now, I could dmap ctrl-l to esc. But I'm so used to the high-left pivot for 'esc' on Thinkpad keypads (and it's a tall key making for an easier target) that it's not worth the bother.
Ctrl-[
instead. Can hit it without moving that far, and it works just as well in GVim as it does in all terminal programs.The only downside is being confused when nothing happens in a browser...
The only downside is being confused when