Splitting the screen with vim
- Open the first file:
vim file1.txt - type:
:vsplit - press:
ctrl + wand then press the right arrow to move to the screen on the right - type:
:e path/to/file2.txtto open a new file ‘file2.txt’ - press:
ctrl + wand then press the left arrow to move back to the first screen - when done just do
:wqfrom either screen to close it