Remember f + character?
tbrings your cursor right before the character
T moves you backwards

Amazingly, you use these motions with an action.
dt + character deletes everything before the character!

try deleting "thing2, thing3" on line 10
using t
(be sure to preserve the brackets)

Oops, we just realized 'thing2, and thing3' are really important. How can we ever get them back? Type u to undo the last action.

Tip: f + space moves to the next white space.

How can you add a new line?
o adds a line below
O adds a line above

There are also efficient ways of working in a line:
$ moves to the end of a line
0 to the begining

I edit the begining of a line
    edit the end of a line A

give the sentence in line 9 a name using I

I hope you're begining to realize the power of motions!

Say you need to add text at the top of the file?
gg will place your cursor at the top
G at the bottom

You can also jump around blocks of text or code
} jump to the next paragraph (blank line)
{ jump to the paragraph above

Try to:
1. jump to the first line
2. skip below the function to line 13
in as few keystrokes as possible

What if you need to jump to a specific line?
:11 jump to line 11

Try to:
1. change "my" on line 11 to your name
2. jump to the last line
3. can you jump back to where you were?

What if you wanted to match a bracket, parthensis, or quotes?
% matches the other pair over your cursor.

Can you change the value of c from 0 to 1 on line 25?
(in as few key strokes as possible)

* reveals all the places the word over your cursor appears.

Can you find all occurence of 'vim'?

We'll learn all about the magic of searching shortly.

""" learn vim interactively """ def move_faster(): u = "I'm a useful sentence." = "I'm a useless sentence, without a name :<" my_list = [thing1, thing2, thing3] vim = "my favorite editor" return vim """ Navigating text in Vim is a fun game. With a single key, you can jump to the end of a line or add a word to the begining. You can also combine motions with actions: delete everything up to the character 'd' is a single command away! """ dictionary = {"a": 2, "b":3, "c": 0} next = "moving at the speed of light"