Use of Vim to improve the article

Source: Internet
Author: User


Vim is the greatest invention of all time, there are a lot of interesting methods, I have a brief introduction here, let your vim use more efficient. Now open your VIM editor and follow the top teacher's action.

Improve:

1.  .→ ( decimal point ) you can repeat the last command.

2. n<command>→ Repeat a command N times

Example:2DD 2 Span style= "margin:0px;padding:0px;font-weight:normal;font-family: ' Microsoft Jacob Black '; font-size:16px;" > line

3p Strong style= "margin:0px;padding:0px;" > →  paste text 3 times
. Repeat the above command
3.   Repeat the above command 3 times   

100idesu [ESC]

Skills:

1. NGto the firstNRow (TopNote : Notice that the commandGis capitalized, and I generally use: Nindicated to the firstNline, such as: 137 indicatesto the first137line)

3. GGtop Span style= "margin:0px;padding:0px;font-weight:normal;font-family: ' Microsoft Jacob Black '; font-size:16px;" > Note: equivalent to 1G Span style= "margin:0px;padding:0px;font-weight:normal;font-family: ' Microsoft Jacob Black '; font-size:16px;" > :1 )

< Span style= "margin:0px;padding:0px;font-weight:normal;font-family: ' Microsoft Jacob Black '; font-size:16px;" >4.G  →  to the last line.

5. move by word:

w-> to the beginning of the next word

< Span style= "margin:0px;padding:0px;font-weight:normal;font-family: ' Microsoft Jacob Black '; font-size:16px;" >e-> ye   and yw are different, in our VIP class have said, everyone still have the impression. No impression hurriedly contact top teacher QQ  

< Span style= "MARGIN:0PX;PADDING:0PX;FONT-SIZE:9PT;" > Note: If you think the word is by default, then use the small e and W 。 By default, a word is made up of letters, numbers, and underscores

If you think the word is made by blank character delimiter, then you need to use the uppercase e and W 。

0 → first come to the wardrobe

y → Start copying from here

$ → Copy to the last character of the bank

It's important to note that you can press it faster.

ye Copy from current position to last character of this word

3FA indicates finds the third occurrence of a in the current row


This article is from the "xinsz08の parallel space-time" blog, be sure to keep this source http://xinsz08.blog.51cto.com/10565212/1915914

Use of Vim to improve the article

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.