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

How to split the vim window

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly introduces "how to split the vim window". In the daily operation, I believe many people have doubts about how to split the vim window. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to split the vim window". Next, please follow the editor to study!

The following is the vim command for window splitting: (the following command is in the last line mode)

1. Horizontal window segmentation:

Split (opens another window to view the same file)

: split file name (opens another window to view the specified file)

2. Vertical window segmentation:

Vsplit (opens another window to view the same file)

: vsplit file name (opens another window to view the specified file)

3. Switch between windows:

Cntl+w+w: hold down the cntlkey and press the w key twice. Switch from one window to another (there are usually two windows open, and if you have more than one window, it will look messy, so just remember this switch command is enough? )

4. Increase or decrease the window size:

Cntl+w,+/-: holds down the cntlkey while pressing the w key (this combination should be the start flag of the command), and then press + (increase the window) or-(reduce the window) (do not press the cntl key at this time).

5. Close the current file:

1) switch the cursor under the current window, and then close the window the way you close a single window. For example: Q command.

2) close all window files: add all to all commands that close a single window, such as the qall command.

3) close files other than the current window. : only .

Divide as much as you want!

At this point, the study on "how to split the vim window" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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