Linux common commands (1-VI/VIM)

Source: Internet
Author: User

Vi/vim Text Editor

General mode:

DD: Delete cursor when moving forward

DND: Delete n rows

U: Undo Step Up action

YY: Copy when moving forward

P: Paste

x: Delete a letter

DW: Delete a word

YW: Copy a word

shift+^: Moving to the Wardrobe

shift+$: Move to Row bit

Shift+g: Moving to the end of the leaf

N+shift+g: Move to Target row

: W (Save)

: Q (Exit)

:! (Forced exit)

: S%/old character/new character (bulk substitution)

/words to look for

: Set nu/: Set Nonu display line number/close line number

Use I (before the cursor), a (after the cursor), O (next line of the current cursor), s (delete current character), s (delete current line), R (enter replacement mode) into edit mode

Linux common commands (1-VI/VIM)

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.