News for hackers. Stuff that matters.
Re:What is in your .vimrc by freyrs3 on Saturday August 20, 2011 @08:26PM (#2908143)
Or bind Caps Lock to <Esc>:

     $ xmodmap -e "clear lock"; xmodmap -e "keycode 0x42 = Escape"
Re:What is in your .vimrc by marshray on Saturday August 20, 2011 @08:47PM (#2908182)
I'm hooked on Caps Lock being an additional Ctrl. That helps for emacs-style bindings too (like bash).
Re:What is in your .vimrc by jacobr on Sunday August 21, 2011 @05:09AM (#2908815)
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