Re:What is in your .vimrc
by freyrs3 on Saturday August 20, 2011 @08:26PM
(#2908143)
Or bind Caps Lock to <Esc>:
[ Parent
| on HN ]
I'm hooked on Caps Lock being an additional Ctrl. That helps for emacs-style bindings too (like bash).
I have mapped Caps Lock to switch between input and command mode. I use F10 as a "placeholder" to avoid triggering an actual changing of caps lock mode.
# .Xmodmap:
keycode 66 = F10
clear Lock
# .vimrc
imap <F10> <ESC>
nmap <F10> i