Get the App
SLTechnology News&Howtos  ›  Servers  › 

Learning the methods and skills of Vim parallelism

Shulou Source: shulou.com Published: 2022-06-02 02:11:26 10月02日 Update

When you first come into contact with Vim, you will feel that its learning curve is very steep, so you have to remember a lot of commands. So the sharing of this series will not.

Teach you how to configure it, but teach you how to use it quickly.

In order to make the code beautiful during development, attributes are often displayed in a line-breaking way.

...

This scenario is suitable for situations where there are few tag attributes and a small amount of code.

If the number of tags suddenly increases, it will be very inconvenient to read. Such as the following:

View and edit

So we need to change the tags and attributes to one line.

View and edit

Most IDE do not handle the attributes of tags when the code is formatted.

We can only wrap the line with the cursor and then solve it by deleting it.

So the technique introduced next, called "parallel", allows us to solve this problem quickly.

In fact, we can see that this VIM is parallelized, just like code formatting, making the written code easier to read and better formatted. If you have any other questions, you can discuss them in the message area below.

Tags: Code attributes tags formatting methods problems skills learning good-looking beautiful steep next one line cursor command scene frequent meeting situation curve but Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi vpn Redmi Shulou Tech Info Docker