I am in the middle of line in insert mode and want to break out of the line and start a new line (above or below)

What I want  is effectively
<ESC>o   or <ESC>O

But does Vim7 have a native command for this?

I cant imagine such a command being added in Vim7 in some sort of "native" fashion, given that it's fairly trivial to map it:

        imap <f4> <esc>O
        imap <f5> <esc>o

or whatever your favorite key happen to be.

I have a similar set of mappings for the opposite condition...to insert a line above or below the current one without going into insert mode (it just boringly does an "o" or "O" and followed by an <esc>). Not very exciting stuff, which makes it likely it won't show up as a native sort of command, when there's a pre-existing means to do it with minimal fuss.

-tim




Reply via email to