Use the direction keys (arrow keys) to move one line up or down, or one character right or left. You can also use h to move left, l to move right, k to move up, and j to move down.
Moving one word forward (w) or one word back (b)
Moving to a particular line
for some other ways to move around a file in vi.