On 4/16/08, Zdenek Sekera <[EMAIL PROTECTED]> wrote:
>
>
> No problem when I try 'vim -O a b' this puts both files
> side by side as it should.
> I was surprised to see 'vim -O a a' (note the same file)
> it doesn't put them in a split window. Is this expected?
> On the other hand
>
> vim a
> :vsp a   (inside vim)
>
> will put correctly the same file 'a' side by side.
>
>
> ---Zdenek
>
>
>
$ vim -o a a   #this doesn't  open file a in two horizontal splits

$ vim -p a a   #this doesn't  open file a in two tabpages

Given that this behavior is consistant across three command-line
options, and without having searched for the code, I'd say that Vim
does this on purpose.  I would suspect that opening the same file in two
windows isn't a real common need, especially if each view
of the file starts at the very same line.

If you really want to do this, though, may I suggest:

$ vim a -c "vert sb"

-- 
Erik Falor
Registered Linux User #445632 http://counter.li.org

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui