search

Home  >  Q&A  >  body text

How to start vim and open multiple files in tab mode with one command?

After opening vi, you can use tabe to open multiple files.
I want to finish it in one sentence.

For example, vi a.c b.c c.c can open three tab pages at the same time.

巴扎黑巴扎黑2775 days ago626

reply all(1)I'll reply

  • 滿天的星座

    滿天的星座2017-05-16 16:42:57

    Search help vi -h | grep tab得到-p[N] Open N tab pages (default: one for each file)
    That’s vi -p4 1.txt 2.txt 3.txt 4.txt
    That’s okay too vi -p 1.txt 2.txt 3.txt 4.txt

    Personal test is feasible:)

    reply
    0
  • Cancelreply