Re: feature proposal: ":tabe file1 fileN" and ":sp file1 fileN"
- Rodolfo Borges wrote:
> I wanted to open a new tab, to edit three files, splited in their ownWhat does already work is, for instance
> three windows.
> I tried ":tabe file1 file2 file3", vim complained "Only one file name
> Then I tried ":tabnew" and ":sp file1 file2 file3", it also didn't work.
> My proposal:
> Open N tabs with
> :tabe file1 file2 ... fileN
> Open a new tab, with N splited windows with
> :tabe -s file1 file2 ... fileN
> Split N windows with
> :sp file1 file2 ... fileN
> What do you think?
:sp file1 | sp file2 | sp file3
or (untested; v7 only)
command! -nargs=* complete=file -bar Split
\ call s:Split(<f-args>)
if a:0 == 0
while i <= a:0
exe "split" a:000[i-1]