How to open horizontal and vertical split mode to work with multiple files in VIM command commands Linux March 6, 2019August 18, 2019 Horizontal split mode vim -o file1.txt file2.txt Vertical split mode vim -O file1.txt file2.txt Now to switch between these files use Ctrl + W + W to toggle between these files. By using these commands we can open n number of files.