vim -p file1 file2

Category: File Viewing & Editing

vim -p file1 file2

Open multiple files in separate tabs in vim

Opens multiple files in vim, each in its own tab — switch between them with gt and gT.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.