vim -o file1 file2

Category: File Viewing & Editing

vim -o file1 file2

Open multiple files in horizontal splits in vim

Opens multiple files in vim with horizontal splits (one above the other) so you can see them simultaneously.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.