News for hackers. Stuff that matters.
Re:What is in your .vimrc by marshray on Saturday August 20, 2011 @08:12PM (#2908117)
I map semicolon to <Esc>, and ctrl-l to insert a semicolon in insert mode.

<Esc> is one of the most frequent commands, no reason it should be on one of the farthest keys.

Re:What is in your .vimrc by mitjak on Saturday August 20, 2011 @08:19PM (#2908127)
<Ctrl-C> works the same as <Esc> and does the same job of jumping back into normal mode.
Re:What is in your .vimrc by marshray on Saturday August 20, 2011 @08:45PM (#2908180)
Ctrl-[, too. But for some reason it's not as smooth for me. This idea of mapping semicolon came from a command layout rethink experiment I originally did on emacs. Always been meaning to reconstruct that more fully some day. Vim doesn't make it possible to define new first-class modes, so it will probably have to be a from-scratch editor (if I ever get around to it).
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