tags:

views:

53

answers:

1

Howdy,

I can start Gvim and be positioned at a line

gvim file1 +10

or I can start Gvim and have 2 files in tabs

gvim -p file1 file2

is there an invocation which does

gvim file1 +10 file2 +20

the above opens with file1 at line 20, file2 at line 1

I want file1 at 10, file2 at 20.

Thanks, Kent

+2  A: 

Are you looking for this ?

gvim -p file1 file2 -c 10 -c tabn -c 20 -c 1tabn
Luc Hermitte
Yes, that is very nice, and a generally useful technique, passing a list of commands to execute.Thanks,Kent
ktenney