5 ms·
C-[ is equivalent to <Esc>, and is much more natural. I also bind caps lock to ctrl (setxkbmap -option ctrl:nocaps on a GNU/Linux system), which makes this all
by mikegerwitz 10y ago
C-[ is equivalent to <Esc>, and is much more natural.
I also bind caps lock to ctrl (setxkbmap -option ctrl:nocaps on a GNU/Linux system), which makes this all the more natural.
- Rainymood 10y agoI never really liked C-[, kj is just a finger roll away and it's ingrained in my muscle memory now. I try to avoid shift as much as possible as I get a very cramped finger if I have to use shift too much. I have a lot of custom TeX bindings for this as well (i.e. <Leader>b => {} (braces), <Leader>p => () (paren)). I even rebound 44 to $$ because I don't type 44 that often anyway.
- eikenberry 10y agoWhy not just change caps-lock to esc. setxkbmap -option caps:escape
- Lio 10y agoOne reason would be so that you can use C-h as backspace, C-i as tab and C-m as return without moving your whole hand. Of course you could map caps lock to be both ctrl and escape at the same time but C-[ is almost as good.
- mikegerwitz 10y agoPersonally, because it offers me no benefit: [ is on the other hand, so it's the same speed as hitting a single key, and I use Ctrl for many other things; Esc is specialized. I'm also an Emacs (and vim) user (Evil mode, of course).
- globuous 10y agoRemaping caps lock to ctrl changed my life on vim (amongst other things). I didn't know about C-[ though, i've been using C-c which is also an <Esc> equivalent by default. On MacOS anyway.
- Lio 10y agoPlease note, C-c isn't quite the same as <Esc> C-[ is though, and because it's part of the terminal it'll work in other Vi like places like the command line (set -o vi) and ncurses.