2

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

3

Try these:

args file1 file2 file3|vert all

or

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 that you have read and understand our privacy policy and code of conduct.

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