Splitting the Screen in VIM
01 Feb 2012Splitting screen can be really handy when you are dealing with a large code and you want to reffer to the top of the code without opening a new file. This can be easily done using VIM’s split feature which gives you power to split screen into tiny pieces. Here are few commands for splitting the screen
:split <file> [Splits the Window Horizontally]
:vsplit <file> [Splits the Window Vertically ]
<CTRL> + w = Move to Another Window
<CTRL> + w <Movement Keys> = Move to particular Window
<CTRL> + w + = Enlarge Window {For Horizontal Mode}
<CTRL> + w - = Reduce Window {For Vertical Mode}