Skip to content
Vim
Learn/

Opening New Lines

06 / 51

Basic Vim

Opening New Lines

Create an indented line above or below with O and o.

Open commands work from anywhere on the current line and preserve indentation, so adding a statement does not require reaching an edge first.

Use o, and O in the editor beside this lesson. Practice is where you learn it, with the answer a click away; the Test is graded, unaided, and the only thing that marks this lesson complete.

Keys in this lesson

o
Open a new line below and start inserting
O
Open a new line above and start inserting
All 91 keys →

Practice to learn it. Test to prove it.

Practice keeps the answer a click away — endlessly in Free, or as a 15-goal run against par and your own best time in Timed. The Test gives you 8 goals with no hints and a keystroke budget on each; passing it is what marks this lesson complete.

oreturnSpace200;Esc

Open a line below and add the return statement.