I'm preparing some shellscripts to avoid repetition of some usual tasks. Some of them involve opening a file and then using the
:split command in
Is it possible open two files like this from the command line?
Indeed, it is, you can use the
vim -o file1 file2 command. In this way vim will show the two files in split view, the first one in the upper section and the second one in the bottom section.