The VIM editor for Linux Learning

Source: Internet
Author: User

    1. Next page: Page Down

    2. Up one page: Page up

    3. To the beginning of the line: Home

    4. To end of line: End

    5. Move to the end of the file: G

    6. Move to file header: GG

    7. The cursor moves down n rows: N <enter>

    8. Insert a new line below: O

    9. Insert a new line above: O

    1. Search down Word string:/word

    2. Press N again: Search down

    3. Then press N: Search up

    4. Search for word1 between N1 and N2 lines and replace with Word2:: n1,n2s/word1/word2/g

    5. Search for word1 between the first line and the last row, and replace it with Word2:1, $s/word1/word2/g

    1. Delete one character after: X

    2. Delete Previous character: X

    3. Delete one line: DD

    4. Copy one line: yy

    5. Paste to Next line: P

    6. Paste to Previous line: P

    1. U or u: Restore

    2. Save new file:: w [filename]

    3. Set line number: Set Nu

    4. Cancel line number: Set Nonu

Visual Block Block selection

    1. V: Character selection

    2. V: Line Selection

    3. Ctrl + V: Block selection

    4. Y: Copy the anti-white place

    5. P: Paste the anti-white place

    6. D: Remove the anti-white place

The VIM editor for Linux Learning

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.