Skip to content
Vim Learn
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. The challenge proves it once; Practice is a timed run against the clock.

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 against the clock.

The challenge proves completion once. Practice is a timed run of 15 goals — beat par, then beat your own best time. Every completed goal saves locally.

O//SpacetotalEsc

Open a line above and add a short comment.