epanda wrote :
> I am lauching vim by a batch into windows.
> 
> cd C:\Users\Admin\Documents\scripts
> vim -c "source C:\Users\Admin\Documents\scripts\myScript.vim" -c
> "argdo call Func()" -c "exec 'saveas '.expand('%%:p:h') . '\new_' .
> expand('%%:t')" -c q aFile
> 
> The calling func does well its job but vim is still opened after the
> job. I would like vim to be closed after the job.
> Note that I open aFile and save the result into new_aFile
> 
> I have got those errors :
> 
> Erreur détectée en traitant command line :
> E13: Le fichier existe déjà (ajoutez ! pour passer outre)
> E37: Modifications non enregistrées (ajoutez ! pour passer outre)

It looks like your "new_aFile" file already exists, as suggested in your
error, try to add ! to saveas.


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

Reply via email to