Vim Multi-window editing

Source: Internet
Author: User

Vim file1 file2 can open more than one file at a time, switching between files can be done by: N

Vim-o file1 File2 Open multiple files at once and display them in the same interface (divided into several small windows)-o5 can control the start of cutting into a few small windows

After you open a file

Use: Split to cut this file into two windows to display

Use: Split filename to cut a window into a new window to display the filename

: Vsplit Vertical Cutting window, cut into left and right parts

To move between windows:

Ctrl+j ctrl+k

Adjust the position of the window

Ctrl+w J (must be capital J Shift+j)

Ctrl+w K

Ctrl+w H

Ctrl+w L

Ctrl+w-(CRTL+W and-separately pressed) The current window height is reduced by one row

Ctrl+w + (CRTL+W and + separately pressed) increases the current window height by one row

Ctrl+w = resizes the window to the same size

Vim Multi-window editing

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.