Vim editor usage accumulation (for win)

Source: Internet
Author: User

Open a hole and record the evolutionary process using VIM. This thing is not a day or two with the fine, more natural feel that there are many places need to further study, and slowly come up with efficiency.

First I spent most of the time on win to do development, win on the vim need to go to configure a lot of plug-ins, I remember that I also toss a little day. I have configured a simple and used version here, like can be taken first:

Https://github.com/RockDeria/rock_tools_vim.git

This does not introduce basic operations, but extends one layer, which is directly oriented to demand.

1. Adjust the number of empty characters from 1 to 10 lines at the beginning of the line, taking 2 as an example (note the distance between the last two slashes, the distance of the empty characters in the beginning of your final result, and if it is empty, delete all the empty characters from the beginning)

: 1, 10s/^\s*/  /

2. Cursor at the first character of a word, delete the word and start editing

C W

3. Remove 35, 36 lines of//comments

:36s/\/\//g

4. In the next few lines of the current cursor, take a few actions to replace the string in line 4 below the current cursor with an int

:., +4s/string/int/g

Vim editor usage accumulation (for win)

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.