Vim split-screen operation command

Source: Internet
Author: User
Start vim open multiple files and split screen display: vim-onfile1file2o is lowercase letters, upper and lower points, n is the number of split screen, followed by the file to be opened vim-Onfile1file2O is uppercase letters, left and right points, n is the number of split screens, followed by the number of split screens of files to be opened in the opened vim file to split up and down the window where the cursor is located: spctrl + ws split the left and right sides of the window where the cursor is located: vspctrl

Start vim to open multiple files and display them on a split screen:

Vim-on file1 file2o is a lowercase letter, with upper and lower scores. n indicates the number of split screens. the subsequent file vim-On file1 file2O is a capital letter, with the left and right scores, n is the number of split screens, followed by files to be opened

Split the file on vim.

Split up and down the window where the cursor is located: spctrl + w s split the left and right sides of the window where the cursor is located: vspctrl + w v

Move between different windows

Move to the window on the left of the cursor ctrl + w hctrl + w move to the window above the cursor ctrl + w kctrl + w ← move to the window below the cursor ctrl + w jctrl + w ←

Close current window

ctrl + w cctrl + w q:q


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.