VIM: Open multiple files at once in separate tabs

Posted by jason on Jan. 30, 2012, 7:29 a.m.
Tags: config vim

When I use vim, sometimes I like to open multiple files, each in its own tab. To do this, use the -p option:

[jason@jasonmaur.com]$ vim -p file1 file2

I love the -p option but don't like typing it, so I added the following to my .bashrc file:

alias vi='vim -p'

0 comments