Previously saw that side of the screen operation feel very high-end, and now a preliminary collation.
This is not the code implementation of the split screen, completely Linux operation command
One, open and display the file
1. Open
This needless to say, is VI xx.c, or VI xx1.c xx2.c
If VI is already open, enter in the bottom line mode: Open xx.c
2. Display
Terminal bottom Row Mode input
: Split Vertical split screen
: Vsplit Horizontal split screen
(Do not enter a split-screen command more than one split-screen window)
Second, the switch between the Windows
Here are a few ways to switch:
1. Bottom-line mode
: Bn Next file
: BP previous file
(The b here should be a jump)
2. Shortcut key method
ctrl+w+ Arrow key switch up and down the left and right window (I can only use left and right here)
CTRL+W+H/J/K/L toggle up and down Windows (left/bottom/top/right in order)
CTRL+WW switch the screen in turn
Note: At present, I summed up so much, some of the article said ctrl+6,ctrl+b,ctrl+% .... I can not use after the practice, write not full please do not hesitate to add.