vim test.html
vsplit test.css
split test.js
Three windows appear.
Move the cursor to the lower left and enter the command :hide
So there are only two windows on the left and right.
No matter how many windows there are, the test.html on the right remains unchanged. I switch like this:
1. While keeping only two windows
Use e test.css to bring up the test.css window just hidden
2. Under the three windows, use split test.css to bring up the test.css window just hidden
It doesn’t feel like the fastest way to switch.
The first way:
You can configure some VIM alias to match your usage habits
For example, you can change split to sp
The second way:
The method is to configure the map key combination you are used to through mapleader
For example, mine is through shortcut keys