Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Learning the methods and skills of Vim parallelism

2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report