vim multi-window operations

Enter the command line mode :sp 1.txt opens a new level split-screen window to edit 1.txt

Input the command line :vsp 2.txt to open a new window to edit screen Vertical 2.txt

Normal mode Ctrl+w s current window is divided into two horizontal windows

Normal mode Ctrl+w v current window is divided into two perpendicular windows

Normal mode Ctrl+w q namely: q end of the segmented window. If you need to use to force an input character! In new window Namely: q!

 

Normal mode Ctrl+w j Move to the next window

Normal mode Ctrl+w k move to the top window

In normal mode Ctrl+w h moves to the left window

Normal mode Ctrl+w l shift to the right window

 

Guess you like

Origin www.cnblogs.com/myblog627600914/p/12481915.html