Re:Here is why vim uses the hjkl keys as arrow keys
by mtts on Friday March 09, 2012 @01:52PM
(#3685413)
Never knew that Ctrl-C does the same thing as escape. Thanks for the info!
[ Parent
| on HN ]
Re:Here is why vim uses the hjkl keys as arrow keys
by no_more_death on Friday March 09, 2012 @04:28PM
(#3686026)
Another issue: if you ever use Ctrl-C in a macro, and then try to rerun it, the macro ends on Ctrl-C.
I use ^[ to end insert mode.
This only happens when you use macros like I do. I took a look at my registers and here's a random one I did four months ago (using Surround.vim to wrap an indented area in div tags).
V/^[ ]\{0,2}[^ ]/-1^MS<div class="question"^M
Re:Here is why vim uses the hjkl keys as arrow keys
by ulisesrmzroche on Friday March 09, 2012 @02:15PM
(#3685497)
They're not exactly the same thing, actually, ctrl-c doesn't allow you to expand abbreviations and doesn't trigger the InsertLeave autocommand, but to be honest, I don't think it's that big of a deal. I go between ctrl-c and ctrl-] without thinking.
Re:Here is why vim uses the hjkl keys as arrow keys
by pyre on Friday March 09, 2012 @08:33PM
(#3686748)
If you use q: or q/ to edit the command or search history, ctrl-c will close the edit buffer rather than swap out of insert mode.
Re:Here is why vim uses the hjkl keys as arrow keys
by graywh on Friday March 09, 2012 @02:35PM
(#3685577)
Also, 3aa<Esc> appends 3 a's, but 3aa<C-d> appends only 1.
Re:Here is why vim uses the hjkl keys as arrow keys
by tathagatadg on Saturday March 10, 2012 @09:25AM
(#3687812)
Life changes. Yet again. Thank you, thank you ..