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