Vim Learning Notes

Source: Internet
Author: User

VIM implements tab tab and split screen, toggle command

If you use Xshell, then the ALT + number can toggle the large tab at the top of the Xshell, which is also handy.

1, in a window, VIM's Small tab tabs command:

: tabnew [++opt options] [+cmd] file creates a new tab for the specified file

: TABC Close the current tab
: Tabo Close all other tabs
: Tabs View all open tabs
: TABP before a
: Tabn after a

It is convenient to use the NGT in standard mode to switch. Also, if you need to open more than one file in the current tab page, switch between files with Ctrl + 6来. If you are accustomed to the former method, this is basically not used in the back. 2, split screen: vsplit This command is too long for anyone to use. Everyone uses: VSP,: SP filename to split the screen. Split screen related actions are ctrl+w start, and then followed by another letter Ctrl+w =: Let the left and right up and down each split screen width, high equality. Ctrl+w _ (Shift +-): Current screen height expands to maximum ctrl+w | (Shift + \): Current screen width expands to maximum ctrl+w C: Close the current screen with the above 3 basic enough.

Vim Learning Notes

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.