Opening vim with several tabs and some being split

69 views
Skip to first unread message

Kristian Frisk

unread,
Feb 12, 2011, 1:00:48 AM2/12/11
to Vim
Hi.

I would like to open several tabs at once
vim -p <file1> <file2>
but I would also like some of them to be split when opening them.
:sp
Is this possible or should I just do it manually?

Thanks for the help.
- Kris

ifys0325

unread,
Feb 12, 2011, 2:14:10 AM2/12/11
to vim_use
HI
We can solve like this :
 
vim -p <file1> <file2> -c "sp <file3>"
 
view help
:h -c
 
 
 
2011-02-12

ifys0325
 

Kristian Frisk

unread,
Feb 13, 2011, 11:00:03 AM2/13/11
to vim...@googlegroups.com
Thanks a lot!

In the end I ended up with this:

vim -p todo.txt man.txt kon.txt -c tabl -c sp -c tabr

As far as I understand there is no shorter way to accomplish the same
task.? Right?

Reply all
Reply to author
Forward
0 new messages