Vim practice manual (5) frequently used multi-buffer operation buttons

Source: Internet
Author: User

Reprinted please indicate this blog from "LIU Da csdn blog": http://blog.csdn.net/poechant

1. Multi-file editing mode

(1) The argument list mode contains multiple file path parameters when opening the vim editor.

(2) buffer list mode: after entering the vim Editor, open multiple buffers for editing.

2. open multiple files in a single buffer zone

: Files
Show which files are currently opened

: N
Switch to the next Buffer

: N
Switch to the content of the previous Buffer

: 2n
Switch to the next Buffer

: Bn
Next buffer content (buffer next)

: BP
Buffer previous)

3. open multiple files in multiple Buffers

: SP [filename]
Open a new buffer. If filename exists, the content is the file; otherwise, it is the current file.

CTRL + W n
Create a buffer

CTRL + w Q
Exit the buffer where the cursor is located

CTRL + w j
Move cursor to next Buffer

CTRL + W K
Move cursor to previous Buffer

CTRL + W L
Move cursor to right Buffer

CTRL + W H
Move cursor to left Buffer

CTRL + W v
Create a buffer in the left and right cutting windows

CTRL + W S
Create a buffer in the Upper/lower cut window

CTRL + W O
Maximize the buffer where the cursor is located, and hide other buffers.

Reprinted please indicate this blog from "LIU Da csdn blog": http://blog.csdn.net/poechant

-

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.