Vim Note Write

Source: Internet
Author: User

Try:

:vert sb N

Which would open a left vertical split (by default, unless to have modified some options).

To open a split-to-the right, on the other hand:

:vert belowright sb N

You can use and to divide the current area into the windows with the :split :vsplit same buffer. If you supply an argument then one of the new windows are created with the argument as a file name used for the buffer in T He new window

To gain more control over how the splits is created, you can combine :vertical the, :leftabove and :rightbelow commands. Also of use is the and :sfind :sb commands.

Examples
:vertical sb 3
Create a vertical split and show buffer number 3 in the window to the left.
:vertical rightbelow sfind file.txt
Create a vertical split and read file.txt into the buffer in the right window.
:rightbelow sfind file.txt
Create a horizontal split and read file.txt into the buffer in the bottom window.
Navigating splitsEdit

Use ctrl-w followed by one of the hjkl movement keys.

 

Vim Note Write

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.