On Fri, 20 Nov 2009 07:24:53 +0900, epanda <[email protected]> wrote:
> 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
...
> 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)

For E13: Vim doesn't overwrite existing file by default.  You have to
use :saveas! instead of :saveas to specify that you really want to
overwrite existing file.

For E37: Func() seems to modify the content of a buffer and the buffer
is not saved by E13.

And if you want to ignore changes, you should use :qall! instead of
:quit to quit Vim.  :quit fails if there are unsaved changes or many
windows.


-- 
To Vim, or not to Vim.
http://whileimautomaton.net/

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

Reply via email to