Vim Learning Guide

Source: Internet
Author: User

Four steps to learn Vim

1 Adaptation

2. Comfortable

3. Feeling good, strong, and fast

4. Use advanced Vim Functions

Level 1

I-> insert mode. Press ESC to return to normal mode.

X-> Delete the character where the cursor is located

: WQ-> Save and exit

DD-> Delete (copy) The current character

P-> Paste

These commands can be adapted to the second level.

Level 2

1 insert mode variant command:

A-> Insert after the cursor

O-> Insert a new row after the current row

O-> Insert a new row before the current row

CW-> replace from cursor to word end

2 basic mobile commands

O-> jump to the first line

^-> Jump to the first non-empty character in the row

$-> Jump to the end of the row

G _-> jump to the last non-null character of the row

/Pattern-> Search for Pattern

3 copy/paste

P-> paste it before the current position. Remember that P is pasted at the current position.

YY-> copy the current row, which is simpler than DD and P commands.

4. Cancel/restore

U-> cancel

<C-r> restore

5. Load/save/launch/modify files (cache)

: E (file path)-> open

: W-> Save

: Saveas (file path)-> Save to this file

: X, ZZ or: WQ-> Save and release

: Q! -> Released but not saved

: BN (contrast to: Bp)-> display the next File Cache

Level 3

2dd-> Delete two rows

3 p-> paste the text three times

100 idesu [ESC]-> "desu desu desu"

.->

3->

---------------------------------- Continue to update -------------------------

Reference:

Http://yannesposito.com/Scratch/en/blog/Learn-Vim-Progressively/

 

Vim Learning Guide

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.