Vim Command daily use

Source: Internet
Author: User
Move cursor ctrl+b screen move backward one page ctrl+u screen move backward half page ctrl+f screen move forward one page Ctrl+d screen move forward half page W cursor jumps to the beginning of the next word e cursor jumps to the end of the next word B cursor back to the beginning of the previous word $ The light moves to the end of the line where the cursor is located ^ The cursor moves to the first non-whitespace character of the line o the cursor moves to the beginning of the line # The cursor moves to the line's # position: H moves one line J to the left, moves one line up, moves one row to the right, moves one line to the previous action. Repeat the last operation YY copy cursor line to buffer yw copy cursor to the end of the character copied into the buffer #yy for example 6yy for copying from the line of the cursor 6 lines down the text p delete x every time you delete the cursor position after a character #x such as 6x is deleted after the cursor location The 6 character X removes the previous character at the cursor position #x Delete the # character in front of the cursor to delete the line #dd, for example, 6DD delete cursor line down 6 lines of text instead of R instead of the character R in place of the cursor at the end of the word to change the name of the cursor. Word tail $ at c#w c3w represents changing 3 words looking for a string/keyword holding n down looking for keyword holding n forward looking for keyword Q exit q! Force Exit W Write w! Force write #,# w [file path] Copy the text from line # to # # lines to a file



From for notes (Wiz)



Vim Command daily use

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.