"Vim" vim learning

Source: Internet
Author: User
Tags delete key

1. Three modes

(1) Command mode:
Just start vim and enter command mode, at which point the keystroke will be treated as a command.

Here are a few common commands:

I switch to insert mode to enter characters.
x deletes the character at which the current cursor is located.
: Switch to Baseline command mode to enter commands at the bottom of the line.

(2) Input mode
Press I in command mode to enter the input mode.

In input mode, you can use the following keys:

Character keys and shift combinations, enter characters
Enter, enter, line break
Back SPACE, backspace key, delete the previous character of the cursor
DEL, delete key, delete cursor after one character
Arrow keys, moving the cursor in text
Home/end, move cursor to beginning/end of line
Page Up/page down, up/down page
Insert, toggle cursor to input/Replace mode, the cursor will become a vertical bar/underline
ESC, exit input mode, switch to command mode

(3) Bottom-line mode
Press: (colon) in command mode to enter the baseline command mode.

The bottom line command mode can enter commands for single or multiple characters, and there are many commands available.

In the baseline command mode, the Basic command has (the colon has been omitted):

Q Exit Program
W Save File
Press the ESC key to exit the bottom command mode at any time.

2. Basic operation

Paste: Command mode P
Copy: yy in command mode

"Vim" vim learning

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.