From within an existing Vim session, I am looking for a technique to achieve the equivalent of -o file1 file2 file3. The :sp[lit] command just seems to create a single new split--it doesn't allow for opening multiple splits simultaneously. It seems like this should be possible, but I haven't been able to find a solution.

1 Answer 1


Try these:

args file1 file2 file3|vert all


args file1 file2 file3|all

all rearranges the screen to open one window for each argument. See help for more information.

Note the | is not used like a pipe, in Vim it's the command separator.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.