"9-20" vimtutor study notes

Source: Internet
Author: User

Section I.
    • GHJK Move Cursor
    • : q! : Forced exit Vim
    • X: Delete the character at the cursor
    • I: Insert at cursor
    • A: Additional text
    • : Wq: Save the document and exit
Section II
    • DW: Delete a word
    • d$: Delete to end of line
    • De: Delete the cursor at the end of the word
    • Number W: Jumps to the front of the next digit word
    • Number e: Jump to the end of a number of words
    • 0: Jump to the beginning of the line
    • D Digit W: delete the number of words from the beginning of the cursor
    • DD: Delete entire row
    • U: Undo Previous
    • U: Undo the action on a line
Section III
    • P: Paste the last deleted text at the cursor
    • DD: Delete entire row and save to clipboard
    • Rx: The character at the replacement cursor is X
    • Ce: Removes the cursor to the ending character and enters insert mode
    • CW: Delete Word and enter insert mode
    • C $: Delete to end of line and enter insert mode
Fourth quarter
    • Ctrl+g: Displays file details, and the number of lines where the cursor is located
    • G: To the end of the text
    • GG: To the head of the text
    • Number of rows +g: Jump to target row
    • /find content: Find, n look backwards, n search forward
    • Ctrl+0: Back to start position
    • %: Find the parentheses that match it
    • : s/old/new: replace old with new
    • : s/old/new/g: Entire row is replaced with new
    • :%s/old/new/g: Global substitution
Fifth Quarter
    • :! : Execute terminal command
    • :! LS: List files
    • : w FileName: Save to filename file
    • :! RM FileName: Deleting files
    • V: Then enter the visual mode, in the input: w filename saved to the specified file
    • : R FileName: Inserts the contents of the file into the current edit area
    • : R! Dir: inserting the dir list into the current file
Sixth quarter
    • O: Reinsert one line in the next row, into insert mode
    • O: Re-opening a line on the previous line to enter insert mode
    • A: Insert, enter insert mode
    • E: Jump at the end of the word
    • R: Enter insert mode
    • V: Enter visual mode, Y (yank==copy) Highlight area, p insert copied content
    • YW: Copy a character
    • y$: Copy to end of line
    • : Set HLS is: Highlight find
    • : Nohlsearch: Disable highlighting

"9-20" vimtutor study notes

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.