Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I open several files in Vim, with each file in a separate window?

file files separate Vim window
0
Posted

How do I open several files in Vim, with each file in a separate window?

0

-o and -O Vim command line arguments to open multiple files in separate horizontally or vertically split Vim windows. For example: $ vim -o3 f1.txt f2.txt f3.txt The above command will open the files f1.txt, f2.txt and f3.txt in three separate horizontally split Vim windows. $ vim -O3 f1.txt f2.txt f3.txt The above command will open the files f1.txt, f2.txt and f3.txt in three separate vertically split Vim windows.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123