This is my command :

vim -c "source C:\scripts\script.vim" -c "argdo call Func()<CR>"  -c
"exec 'saveas! '.expand('%%:p:h') . '\new_' . expand('%%:t')" -c
"qall!" exportSql.xml


The Func called is doing its job but I have to put ENTER KEY to make
vim exit.

I don't understand "trim the material"


On 20 nov, 19:45, Gary Johnson <[email protected]> wrote:
> On 2009-11-20, epanda wrote:
> > While I am launching vim under xp with the following command, I have
> > to push ENTER Key to confirm it to quit.
> > vim -c "argdo myScrip.vim" -c "saveas! newInputFile" -c "qal!l"
> > myInputFile
>
> > If you can avoid me to put ENTER Key, I will thank you.
>
> If the last -c command is really "qall!" and not "qal!l" as you
> showed above, then I don't know why vim would be asking you to
> confirm the quit.  It should just quit.  I can't reproduce the
> problem--it works for me, without the argdo part.
>
> Does the argdo part really work, or is that another typo?  The argdo
> command expects a command as its argument, not a file name.
>
> One other thing:  the convention on this list is to trim the
> material you're quoting, then bottom-post.
>
> Regards,
> Gary
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to