> Hi,
>
> I want to have Vim (on Windows), automatically split the window if I open two
> files (using right-click explorer integration - Open in Single VIM Window).
>
> Actually, a new right-click integration that did this (Open in split VIM
> Window), would be perfect.
>
> Is there anyway to do this?
I don't have a Windows machine handy at the moment so I can't test
this, but it seems to me that you should be able to test in your
_vimrc for the presence of more than one file name in the argument
list with the argc() function, then if the number of arguments is
greater than 1, execute ":all". See
:help argc()
:help :all
HTH,
Gary
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment