VI (vim) has two modes, command and insert.
In command mode, move the cursor left right with j and k, up down with h and l. Then delete characters with x, and then type i to get into insert mode, and enter what you want, then ESC to go back to command mode. Then :w to save and :q to quit. ...