When operating vim on Linux, you can implement multi-window editing. There are many ways to edit vim multi-window. Most people only use one of them. The following small series will give you a detailed introduction to Linux. A method for implementing vim multi-window editing.
Starting multi-window editing
Vim's multi-window is dynamic, you can open multiple windows when you start editing, or you can add new windows at any time while working, or delete a window.
$ vim -o file1 file2 Opens an editing session, which is displayed as a window split horizontally into two halves, one file occupies one window.
$ vim -O file1 file2 the same as above, but is vertically divided halves window
as shown below:
is not sufficient if the screen division With all the windows in it, the first file will take up most of the window, and the rest of the window will be loaded into the buffer, which you can't see for the time being, but you can still use it.
-o followed by a number n, which is in the form of a pre-allocated window:
$ vim -o5 file1 file2 will allocate 5 identical windows, 3 will be idle
Multiple window editing for vim
:split Create a new window that splits the current window into two halves. They display the contents of the same buffer (the same file). This will allow you to browse the same file in both windows.
:vsplit Creates a new vertically split window that also displays the same file content as the current window. The effect is as follows:
Previous123Next page Total 3 pages
As a Java programmer, you need to install Eclipse on a Linux system, many people do not know how to
In the Linux system, the Glibc-2.7 version is required when installing the software
Debian is an operating system that you can use on your computer. Debian wheezy is t
Sometimes you want to sniff HTTP traffic for some kind of need, so how do you sniff
Logrotate tool usage summary in Linux system
Ubuntu how to use PPA to install Pragha player
What should I do when I prompt Unencrypted connection when Oracle Linux 5 remote telnet?
Ubuntu how to install and optimize SSD hard disk
Kali Linux installation Google Chrome common problems and solutions
Linux uses Shellscript to install the NIC driver instance
How Linux systems communicate remotely with Windows
What if Ubuntu can't start Eclipse?
Two methods of Deepin system update
How to display the number of Linux subfolders and files
Win8 system can not install cad2007 software how to solve?
Digging Win 7 Potential Solution IE8 Homepage Modified Issue
How to speed up Thunder video and audio Thunder audio and video hardware acceleration tutorial
IE browser can't open webpage solution in new window (tab)
Win8.1 IE11 Raiders: How to synchronize the "WP9" side page
Improve the speed of the win 8 system optimization skills
How to open display file mode in win10 system
Always manual too much trouble Win's automatic backup function does not try
How does the TEMP folder appear on the desktop after Win7 launches the browser?
Windows7 burning CD drive does not read the disk troubleshooting