3 ms·
I do the exact same thing, but with the 'jk' keys. It works really well. I also have 'JJ' (insert mode) mapped to create a new line on top of the current line a
by farresito 11y ago
I do the exact same thing, but with the 'jk' keys. It works really well. I also have 'JJ' (insert mode) mapped to create a new line on top of the current line and go into insert mode, and 'jj' (insert mode) to create one line under the current line and go into insert mode. It seems like it makes no sense, but I have gotten used and works wonderfuly (I could finish writing the parameters for a function inside the parentheses, press jj and simply open the braces that make the function's body, instead of having to go to escape mode or having to press ')' and then enter to get out of the parentheses and go to the next line.
Thank you for the tip anyway :-)
- dozzie 11y agoI don't understand neither of you two. Why bother with jj or jk when there is <Ctrl-C>? There are few cases when it differs from how <Esc> works, but those are rare and make changes big enough to justify jumping to <Esc> anyway.
- farresito 11y agoIt's faster, in my opinion. Using ctrl is one of the reasons people end up with the pinky things in emacs. jk is in my home row. I would rather avoid having to reach the ctrl key. I think ctrl-[ does the exact same thing as ctrl-c. It's just a matter of preference.
- wutbrodo 11y agoI don't really have occasion to press the ctrl key in the course of normal typing in vim, so it's much easier for me to hit jj. In particular, jj is right under my right index finger which makes it one of the easiest key-combos to hit without too much travel or thought.