Course
Free Trial: 4 lessons remaining
Unlock Full Access
Practice
Beginner
10 min
Insert, Append, and New Lines
Basic Text Editing
Task Instructions
Learn different ways to enter Insert Mode and create new lines
Add 'New line above' between the first and second lines using 'O', and add 'New line below' after the third line using 'o'. You can also practice using 'a' to append text.
Learning objectives
- Practice using 'a' to append text
- Learn 'o' and 'O' for creating new lines
- Understand different text insertion methods
lesson.txt
Start
First line Second line Third line
Goal
First line New line above Second line Third line New line below
Helpful commands
- a
- Enter Insert Mode after cursor (append)
- o
- Create new line below and enter Insert Mode
- O
- Create new line above and enter Insert Mode
Stuck? Peek at a hint 2 hints · try it on your own first
- 'o' creates new line below, 'O' creates new line above
- 'a' appends after cursor, 'i' inserts at cursor
" Read the task on the left.
" A live Vim editor opens right here.
" Finish the edits, then submit.
~
~
NORMAL