Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
add comment

2 Answers

up vote 8 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.

share|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
add comment

this should do the trick:

ctrlo o

share|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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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