Multi-window open multiple files
Vim-o file1 file2 ...----default up/down split window
vim-0n file1 file2 ...----vim defaults to n + windows
Split window
: [v]split file----open files with split (v) or Portrait split current window (equal to split)
: [N][v]split/new [++opt] [+cmd] [file]----N: The actual number of rows in a new window starting from the top, opt:vim options, cmd: Commands executed in a new window, file: A new window in the real files. Example: 15split ++fileformat=unix otherfile
Quick and simple split window can use shortcut keys: Ctrl+w,s ctrl+s
: Sview filename----Open a new window in read-only mode to reality file, portrait split
: Sfind [++option] {+cmd] filename----Find the file named filename, opens in a new window. Do not split the window if not found
Move the cursor in the window
CTRL+W,H/J/K/L---Switch the current window up or down
Ctrl+w,ctrl+w----loop sequence is the illusion of the current window
Move window
Ctrl+w r----Window swap position without changing the cursor
ctrl+w,x----window swap position, cursor toggle
VIM uses north----multiple Windows in Vim