On 2012-09-11, Timothy Madden wrote: > Hello > > I would like to execute a Vim script from the command line, for > example to build a vimball archive from a Makefile. > > But when I do that the Vim window always pops up and then immediately > disappears (as the script completes). Even if there are errors in the > window. > > Is there a way to execute the vim script without a Vim window ? And > to get the errors on stdout ?
Sure. Use the -E option along with a -c option for each ex command you want to execute. vim -E -c 'some ex command' -c 'another ex command' -c q See :help -E :help -s There are more examples here: :help $VIMRUNTIME :help g:html_no_progress :help 26.4 Regards, Gary -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php