Vim Editor Common Command induction Daquan

Source: Internet
Author: User

ESC: Command-line modeI: Insert command a: Additional command o: Open command C: Modify command r: Replace command s: Replace command above enter text input mode : Enter the last line mode last-line mode:W: Save Q: Exit, no save can not exit Wq: Save and Exit X: Save Exit q! : Forced exit when entering the mode:I: Insert cursor before one character I: Insert line A: Insert cursor after a character a: insert row not o: New line down, insert beginning O: New line up, insert start Command mode: (move cursor)H: Move left J: Move Down K: Move up L: Move right m: Cursor moves to Middle row h: Moves cursor to the top line of the screen L: Cursor moves to the beginning of the last line of the screen g: Cursor moves to the end of the file, or moves to the specified line, line number-GGG: Cursor moves the beginning of the file W Jump to the next word e: Jump to the end of a word (with punctuation) E: Jumps to the end of the word B: jumps back to the beginning of the word B: Jump back to the first letter of the word GD: jumps to the current cursor function or the definition of the variable FX: Move the cursor forward moves the next occurrence of the character X ;: Repeat the last F command FX: Move the cursor forward moves the next occurrence of the character x in the line ^: line of the first character $: line at the end {: Moves by paragraph, move up}: Move the cursor to the next, the previous sentence ctr-b: Turn up one screen ctr-f: Turn one screen down ctr-u : Flip up half screen ctr-d: Scroll down half screen bookmark: ma: Make a bookmark named a in the position of the current cursor ' A: jump to bookmark a Command mode: (delete command)X: Delete the cursor after a character, equivalent to DELX: Delete the previous character of the cursor, equivalent to Backspacedd: delete the cursor row n DD Delete the specified number of rows d: Delete the cursor after all the contents of the line, including the character of the cursor D0: Delete all the contents of the cursor, does not contain the character of the cursor DW : Deletes the word at the beginning of the cursor, containing the character of the cursor Command mode: (copy and paste)YY: Copy the current line yw: Copy a word y$: Copy to the end of line n yy copy n line p: Insert the text in the Clipboard when the line is at the current cursor P: Inserts the text in the Clipboard before the line is in the current cursor Command mode: (Undo command)U: Step by step undo Ctr-r: Reverse undo, redo Command mode: (Repeat command). : The command that repeats the last action Command mode: (Text line move)>&gt: Text lines move right (indent forward) <<: Text line Left (indent backward) Command mode: (visual mode)V: Move by character, select text on visual Mode V: Move from line to start visual Mode Ctrl V: Open Rectangular block visual mode Command mode: (Replace operation)R: Replace the current character R: replaces the character after the current line cursor Command mode: (Find command)/: Find N: Next N: Previous Command mode: (replace command)In the last row mode, replace all ABC in the current file with 123:%s/abc/123/g in the last row mode, replacing the ABC from the first line to the 10th row with 123:1, 10s/abc/123/g in Vim, execute the shell command:Enter in the last line mode!, followed by the command

Vim Editor Common Command induction Daquan

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.