From the shortcut key of the graphical interface, enter gvim.
Then enter the command line and enter VS.
At this time, the left and right windows appeared.
I enter W test.html in the window on the left
Why are the left and right windows ordered to be test.html?
First of all
:vs
For a horizontally split window, see:h vs
. If:vs
Without parameters, the default is to open the current buffer file in the newly split window, that is, your previous test.html. You try:vs ~/.vimrc
, the. vimrc file opens in the newly split window.