Moving the cursor H shifts the cursor left. l Move the cursor right. K or CTRL P cursor moves a row J or CTRL N cursor down to move the cursor to the next small word. W moves the cursor to the next large word. b move the cursor to the front of the previous tab. B Move the cursor to the front of the previous big character. E move the cursor to the next small word. E move the cursor to the back of the previous big word. The FC moves the cursor to the next C character in the same line. The FC moves the cursor to the previous C character of the same line. Tc moves the cursor to the next character C of the same line. Tc moves the cursor to the front character C of the same line. Number | Transfer the light into the Number column. Or ENTER moves the cursor to the next line of the first non-empty white character. - Move the cursor to the first non-empty white character. ) The cursor moves to the end of the sentence (the cursor moves to the first} cursor moved to the beginning of the paragraph {cursor moved to the paragraph end NG cursor moved to the N-line head N cursor minus N row N-cursor Move N-line N-line N-row to move to The Nth Ring H moves the cursor to the top of the screen. M shot moving to the screen L cursor moved to the screen last line 0 (note is a number zero) cursor moved to the current line of the cursor moved to the current row Space cursor Right shift a character backspace cursor left shift a character screen rolls Ctrl f backwards. Ctrl D rolls half pages. Ctrl b rolls forward. Ctrl u forward half pages forward. Ctrl The E screen rolls down. The CTRL Y screen is rolled up. NZ rolls the nth row to the top of the screen, not specifying N, roll the current row to the top of the screen. Insert text i in the cursor before the current line A After the cursor, A. When the current row o is newly opened in the current row, replace the current character R Replace the current character R Replace the current characters and the following characters until the ESC key S starts from the current cursor position. In order to replace the specified number of characters S with the input text to delete the specified number of rows, and the NCW or NCW modification of the NCW or NCW modification specified number of words NCC modified the NDW or NDW to delete the cursor start and after it. N-1 word DO Delete Life D $ Deleted to the Row NDD Delete the current line and the subsequent N-1 line X or X delete a character, X delete the cursor, and the X delete the ctrl u before the cursor The text CC or S entered in the input mode modifies a single line. C changes the part after the cursor position. CW changes the word where the cursor is located. D deletes the current line. D De De De De De De De De De De De De Deleting the Cursor. Words. J Plus the next line of content to the Bank. RC replaces the characters in which the light character is located to C. R Cover the Bank content. U Resume the last modification. ~ Change the case where the cursor is located. One action. << Move the current row to the left. >> Search / Replace / Pattern Search Pattern? Pattern? Pattern from the start of the cursor Pattern? Pattern Pattern Pattern Search Pattern N in the same direction Repeat the last search command N repeats the last search command S / P1 / P2 / G in the reverse direction to replace all P1 in the current line N1, N2S / P1 / P2 / G, all P1 in the nth to N2 lines Replacing G / P1 / S / / P2 / g with P2 All P1 in the file is replaced with P2 / PATTERN / NUMBER to stop the cursor behind the Number on the row of Pattern. / Pattern / -Number parked the cursor Contains Pattern Row in front of the NUMBER line. % Move to match "() or" {} ". Changing the screen displays Z-put the current line as the last row of the screen and re-displays the screen. Z. Put the current line as the middle of the screen and re-displays the screen. Ctrl l Re-displays the current content of the screen. / Pattern / z - look for the next location of Pattern and the last line of the screen is the screen. Copy text P takes the buffer content to the bottom of the row in the cursor. P take the buffer content to the top of the cursor. "BD deletes text to the name buffer B." BP posted the contents of the buffer B. YY puts the current row into the buffer. Y Y put the current row into the buffer.
YW puts the word of the cursor in the buffer option setting all the option settings, TERM Sets Terminal Type IgnoRe, ignore cases, LIST display, tablets (CTRL i) and row tap ($) Number display line No. Report Displayed by a row-oriented command Modified TERSE Show short warning information WARN When you transfer to another file, if you do not save the current file, the NO WRITE message Nomagic is allowed in search mode, using the front without "/" Special Character NOWRAPSCAN Prohibition When the VI is searching on both ends of the file, starting MESG from the other end MESG to allow VI to display other users with Write to write information on their own terminals N1, N2 CO N3 will copy between N1 lines to N2 lines By the N1, N2 M N3 moves the content between the N1 lines to the N2 line to the N1 N1, and N2 D removes the content between the N1 lines to the N2 line to save the current file and exit W back. Write a modified file. W FileName When FileName does not exist, save the modified file as file filename, when the file filename exists, error. ! W FileName If the file filename exists, save the modified file as a file file filename. Multi-file switch N Start Edit the next file in the list of VI-activated files. N filenames Specifies a list of new files that will be edited. Document Switch E FileName Use the FileName to activate VI (in VI into another file filename). E! Replace the current file, if the current file has change, discard the previous changes. E FileName activates VI using the FileName and edits from the end of the file. E NUMBER FileName uses the FileName to activate VI and start editing in the NUMBER row. E # Start editing another file. Add another file R fileName to read the filename file and add its content to the current file. R! Command Execute a Command file and output it to the current file. N1, N2 W! Command Take the contents of the N1 lines to the N2 line in the file as the input of Command and executes, if N1, N2 is not specified, indicating that the entire file content as the input of the Command Ctrl G is editing the file. Related information. : SH starts SH, returns from the SH Available EXIT or CTRL D.:! Command executes command command. !! Re-executing the last:! Command subcommmand. q Exit VI Q! Do not save the file and exit VI ZZ or: WQ Save the file's modification and exit VI. Register operation "? NYY saves the current line and its N row to the register? Medium? , N is a number "? NYW saves the current line and its n word to the register? In this, it is a letter, n is a number "?" NYL saves the current line and its n characters to the register? Where? Is a letter, n is a number "? P Remove the register? The content is placed in the cursor position. Here? Can be a letter, or a digital NDD deletes the current row and its total N line text and put the deleted content into the No. 1 delete register.