Open Vim and split files
Use -o or -O to open multiple files in splits from the command line.
Use -o or -O to open multiple files in splits from the command line.
Use ctrl-w f to open the file under the cursor in a new split.
Use :only or ctrl-w o to close all other splits in Vim.
Incrementally resize splits to expose more area in your viewport.
Jump right to a specific line when opening splits.
Get a better view by switching between vertical and horizontal splits.
Rearrange your splits with familiar directional navigation.
Keep two Vim vertical splits in sync with this trick