Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I started using Ctrl-C instead of Escape in Vim years ago (long before the Touchbar) as it means I don't have to move my hands from the home position.


ctrl-c is a poor substitute for several reasons

1. it cancels any modifiers on the insert command

2. it won't trigger any abbreviations

3. it doesn't work with visual-block insert

4. it bypasses InsertLeave autocommands


>ctrl-c is a poor substitute for several reasons

Counterpoint: modal editing is a poor substitute for several reasons ;)


CTRL-[ is standard Vim mapping for Esc.


It's deeper than that. Control-[ is the same keycode as escape. [ is the next character after Z in ASCII, and Control-[ is the next character after Control-Z. It's not a mapping, they are one and the same.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: