Lesson 11 · Making changes

Yank & put

Yank is copy

y is an operator: yw yanks a word and yy yanks a line. Deletes are yanked too, so dd is really cut.

Put it back

p puts after the cursor (or below the line). P puts before (or above).

Challenge 1 of 40/3

Double it

Duplicate the line with yy then p.

1echo hello
Normal1:1
Target
echo hello
echo hello
Your keystrokes show up here

Lost? Esc always gets you back to Normal mode. Every key from every lesson is in the sidebar.