Enter the command vi filename: Open or create a file, set the cursor on the first line of the first line VI N filename: Open the file, and place the cursor in the first line of the first VI filename: Open the file, and place the cursor The last line, the first VI / PATTERN FileName: Open the file and place the cursor in the first string of Pattern Match vi -r filename: The system crashes when using VI editing, restore FileName Vi FileName ... .FileName: Open multiple files, edit the mobile cursor class command h: Cursor left shift a character L: Cursor right shift a character Space: Cursor right shift a character backspace: Cursor left shift a character k or Ctrl P: cursor Move a row J or CTRL N: The cursor moves down ENTER: the cursor moves one line W or W: cursor right shifts one word to the first b or B: Cursor left shift one word to the header E or E: Cursor right shift one Word j to the word tail): The cursor moves to the end (: cursor moving to the sentence): The cursor moves to the beginning of the paragraph {: The cursor is moved to the end of the end NG: the cursor is moved to the first N : cursor minus N row n : The cursor is moved to the N row n $: the cursor is moved to the N-row h: cursor moved to the screen top line M: cursor moved to the screen L: cursor moved to the screen last line 0: (Note is a number zero) cursor Move to the current list $: cursor move to the current row screen roll roll class command Ctrl u: Turn half screen to the file Ctrl D: Tail of the file half screen Ctrl f: Tail the file to the file Ctrl B; File The first screen NZ: rolls the nth row to the top of the screen, and roll the current row to the top of the screen when not specified.