Type in your text. If you type more than 80 characters on a line, your text will wrap at the end of each line similar to a word processor, but it is strongly recommended that you enter a carriage return at the end of each line that appears on the screen. The vi Editor does not determine a line by how it appears on the screen, but by the occurrence of a carriage return. In Command mode you can move the cursor anywhere on the screen. The following commands control cursor motions.
G moves cursor to end of the file.
Finds previous occurrence of character string entered. Editing Text In Command mode, the following commands allow you to make the described change. D delete from cursor to end of current line. R type over text from current position until you enter command mode again. C change text from cursor to end of the line.