Vim Learning the next day

Source: Internet
Author: User

Vim Learning the next day

1.W: Move backward one word, B: move forward one word, 3w, 3b ....

2.$: Moves the cursor to the end of the line, ^: Moves the cursor to the position of the first non-empty character of the line

3.FX: Looking backwards for the X character in the bank, FX: Looking forward for the X character in our bank

4.TX: Look backwards for the X character in the line, and the cursor is positioned in the first character of the X character. Tx: Looking forward to the line x character, the cursor positioned in the first character of X

5.3G: Navigate to the third row, 1G: Navigate to the first row, G: Navigate to the end of the file

6.:set number Displays line numbers,: Set Nonumber close line number display

7.ctrl + U: Scroll up half page, CTRL + D: Scroll down half page

8. DD: Delete one row, DW: Delete a word, d3w: delete three words, d$: Remove from cursor my position to the end of the line, 3DW: Delete three times

9. C: As with D, delete the character under the cursor, but the command will cause you to delete it in insert mode. CW: Delete A word, excluding the space after the word, DW: Delete a word and a space after it

10.. (one point): Represents the last command executed

J: Connect the current line and the next row in one line, separated by a space

Rx: Replace the character under the cursor with X, 5RX: replace 5 times (that is, the next five characters in the cursor position are replaced by X)

13. ~: Change the case of one character

Q + A to Z any character: Register and record a command (do not know how to express it clearly), @ + (A-Z): Use the command just now

Vim Learning the next day

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.