Linux VIM User Manual

Source: Internet
Author: User

Copy/paste
  • p→ paste after the current position
  • p→ pasting before the current position
  • dd→ Delete the current row and save the deleted row to the Clipboard
  • yy→ copy Current line of business in DdP
Edit
  • a→ inserted after the cursor
  • o→ inserts a new row after the current row
  • o→ inserting a new row before the current line
  • Cw→ replaces characters from the position of the cursor to the end of a word
  • gu→ to uppercase
  • gu→ variable Lowercase
  • d→ Delete
  • y→ Start copying
Move cursor
  • 0→ Digit Zero, to the wardrobe
  • ^→ to the first position of the bank that is not the blank character (the so-called blank character is a space, tab, line break, carriage return, etc.)
  • $→ to the end of our line
  • g_→ to the last position of the bank that is not a blank character.
  • /pattern→ Searching for pattern strings (Chenhao Note: If you search for multiple matches, you can press N to next)
  • ng→ to Nth row
  • gg→ to the first line.
  • g→ to the last line.
  • Move by Word:
  • w→ to the beginning of the next word.
  • e→ to the end of the next word.
    • and #: Match the current word of the cursor, move the cursor to the next (or previous) match word (* is next, #是上一个)
  • %: Match parentheses move, including (, {, [.
Undo/redo
    • U→undo
    • →redo
Combo command
  • n→ repeat a command n times
  • 0y$→ Delete from row to end of line, but leave blank line

Linux VIM User Manual

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.