The insertion mode of VIM basic learning

Source: Internet
Author: User

Insert mode
1. Character encoding, inserting special characters

<c-v>{3 bit}


If you want to enter a, you can enter it in the input mode
<c-v>065 (must be 3-bit)

<c-v>u{4 bit}


For example, if you want to enter ¿, you can enter it in the input mode
<c-v>u00bf

<c-v>{non-numeric}


Literal inserting non-numeric characters
<C-v> G is getting g.

<c-k>{non-digit} {non-numeric}


Two characters to merge
For example, if you want to ½, you can use the following method
<C-k> 12


So how do we look at the encoding of a character?
You can put the cursor on this character, and then GA
You'll see the information at the bottom of the screen.

2. Replace

R (GR)- Replace single character GR-enter replacement mode until you manually end the replacement mode


For example
AAA BBB CCC
If the cursor is on the first C, then normal mode you r B. The first C becomes B and returns back to normal mode.
In the same situation, if you choose GR, you will find that you can always type in, and the new input will overwrite the old one.
It's actually the equivalent of omitting the removal steps.

The insertion mode of VIM basic 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.