In TextMate, when you're not at the end of a line and you want to enter a newline, you can type Cmd-Return.

Is there an equivalent for this in Vim, when you're in insert mode?

link|improve this question

64% accept rate
feedback

2 Answers

up vote 7 down vote accepted

Would ESCo do? It's two keypresses, just like CmdReturn, and you don't have to hold them at the same time. The only drawback I can think of is that you temporarily leave insert mode.

link|improve this answer
Yes, that'll do just fine. I've seen people discuss mapping the Esc key in Vim to another key. I may look into that depending on pinkie fatigue. – Matthew Rankin Feb 24 '11 at 12:12
feedback

this should do the trick:

ctrlo o

link|improve this answer
Just to clarify for folks, it appears your recommend is Ctrl-o followed by just o. Works brilliantly, especially with my Caps Lock and Control keys swapped, so as to reduce pinkie fatigue. – Matthew Rankin Feb 24 '11 at 12:14
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.