News for hackers. Stuff that matters.
Re:How I boosted my Vim by kgroll on Monday September 13, 2010 @05:27PM (#1688397)
This is actually a really good guide. I use vim daily at work, and my .vimrc shares most of these settings.

One big productivity boost for me was remapping the Escape key to something a little more convenient. I just remapped the ESC key altogether, but this can throw you off if you find yourself working at lots of different computers. If you prefer something less permanent, you can map a key sequence to ESC. I like this one, which maps 'sdf' to ESC if you're in insert mode:

  imap sdf <ESC>
jkjk is also a sequence I've seen used.
Re:How I boosted my Vim by jjcm on Tuesday September 14, 2010 @03:28AM (#1689821)
I typically just remap the escape key to capslock at the OS level. Even though it can through you off like you said, I still find it more convenient than key walks to generate an escape.
Re:How I boosted my Vim by edanm on Monday September 13, 2010 @06:15PM (#1688548)
Why jk twice? I just use jk. Almost never appears in actual writing, and it makes vim much easier to use.
Re:How I boosted my Vim by zem on Saturday September 18, 2010 @05:46AM (#1703998)
Dijkstra would disapprove (:
Re:How I boosted my Vim by pge on Monday September 13, 2010 @06:13PM (#1688541)
ctrl-[ is also equivalent to Esc
Re:How I boosted my Vim by hasenj on Monday September 13, 2010 @07:44PM (#1688777)
weird

I use <C-j> in insert mode (not to be confused with <C-j> in command mode, which jumps to the buffer below).

Re:How I boosted my Vim by swah on Monday September 13, 2010 @05:46PM (#1688461)
So you can't type sdf in your code?
Re:How I boosted my Vim by stralep on Monday September 13, 2010 @06:06PM (#1688522)
You can type it... Just slowly

My combination is just kj.

Re:How I boosted my Vim by cageface on Monday September 13, 2010 @06:15PM (#1688552)
I have jj in my .vimrc.
Re:How I boosted my Vim by zem on Saturday September 18, 2010 @05:48AM (#1704000)
vf is the easiest-to-type two-letter sequence i could find that doesn't appear in any english word. other languages' mileages may, of course, vary. (and if some chavfucker wants to object, well...)
Re:How I boosted my Vim by fortes on Monday September 13, 2010 @06:34PM (#1688605)
I use ;;
Re:How I boosted my Vim by cageface on Monday September 13, 2010 @06:37PM (#1688614)
Not a lisp programmer, I take it.
Re:How I boosted my Vim by telemachos on Monday September 13, 2010 @08:29PM (#1688883)
I'm less learned: the first thing I thought was case branches in Bash scripts.
Re:How I boosted my Vim by X-Istence on Tuesday September 14, 2010 @01:22AM (#1689574)
This would suck if one is also Dutch. We have kj appear rather frequently in words.
Re:How I boosted my Vim by judofyr on Monday September 13, 2010 @05:47PM (#1688465)
You can also use Ctrl-C to get out of insert mode.
Re:How I boosted my Vim by ptn on Monday September 13, 2010 @06:04PM (#1688515)
Yes, but that's not equivalent to Esc, use this:

inoremap <C-c> <Esc>

Re:How I boosted my Vim by graywh on Tuesday September 14, 2010 @09:14AM (#1690378)
That bypasses any InsertLeave autocmds.
Re:How I boosted my Vim by junkbit on Monday September 13, 2010 @09:02PM (#1688965)
Finally! A use for caps-lock
Re:How I boosted my Vim by graywh on Tuesday September 14, 2010 @09:15AM (#1690385)
Emacs and Vim users sometimes return Caps Lock to its previous function: Control. It's more useful than Escape.