[Vim] vim use notes -- split screen operation, vim --

Source: Internet
Author: User

[Vim] vim use notes -- split screen operation, vim --

We often need to open multiple files, operate multiple files in different windows, and split the screen is very useful.


1 command mode: new, create a file and split the screen, shortcut key, Ctrl + W, then immediately press the n key: spilt horizontal split screen, the current screen is divided into two, horizontal. Ctrl + w, s: vsplit Vertical Split screen. The current screen is divided into two vertical ones. Ctrl + w, v: only cancel the split screen, cancel the current screen, the current screen refers to the screen where the cursor is located.
2. Close the current screen: Ctrl + w, c. 3. How do I switch the focus? Ctrl + w, w followed by Ctrl + w, p followed by Ctrl + w, h four direction Ctrl + w, iCtrl + w, kCtrl + w, l 4. how to close other windows? Ctrl + w, o 5. Load file: vs file path/file name open file in new Vertical Split screen: sv file path/file name open file in new horizontal split screen


This article from the "orangleliu notebook" blog, reprint please be sure to keep this source http://blog.csdn.net/orangleliu/article/details/41745933

Author orangleliu adopts signature-non-commercial use-share protocol in the same way


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.