Shortcut Keys for Vim multi-window editing

Source: Internet
Author: User
Tags expression engine

It is very convenient to use the multi-window editing provided by VI when there are many project files. Today I have summarized several useful shortcut keys.

The most basic is to open the split window: sp a. pl

In the switch window, press Ctrl + w and press the next key to select the switch direction. If you press Ctrl + w, the window is automatically traversed from top to bottom.

Expanded window Ctrl-w + expanded window

Zoom out Ctrl-w-zoom out current edit window

Run the shell command in vim :! Ls can execute shell commands, or: shell top

Zoom in the current window and zoom out another window: res. You can set the number of rows next to it. For example, if res 10 is used, set the current window to 10 rows.

With these functions, editing complex projects in vim is also very easy.

Recommended reading:

Vim Learning Guide

Quick learn Vi Editor

Powerful Vim Editor

Build a Vim Development Environment on CentOS 6.2

Vim 7.4a released, a new and faster Regular Expression Engine

Install the highlighted Vim editing tool in CentOS 5.4

Vim tips: C language settings

Set the Vim row number in Ubuntu

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.