Sixth article: Vim editor

Source: Internet
Author: User

1.vim Editor: Command mode, edit mode, extended mode

2. Command-line commands:
A. Delete cursor line: DD left undo: U Right undo: Ctr+r
B. Delete the down n rows (including the current line) where the cursor is located: NDD
C. Copy cursor line: YY copy cursor down n line: Nyy
D. Paste to the line next to the cursor: p paste the line on the row where the cursor is located: P
Paste N times: NP
Yy+p: Copy dd+p: Cut
e.0: Cursor is quickly positioned to the beginning of the line shift+$: Cursor quickly navigates to the end
Add: Terminal command Ctr+a jump to the beginning of the line, ctr+e to the end
F. Jump to the first line of the entire file: GG
Skip to the end line of the entire file: shift+g/g
Jump to N rows: n+shift+g/ng
G:wq Save and exit
H.set Nu Displays the line of the file
I. Jump to the top of the screen first character: H
Jumps to the first character of the line in the middle of the screen: M
Jumps to the first character of the bottom line of the screen: L

Sixth article: Vim editor

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.