On 09/11/2012 08:02 AM, lith wrote:
I would like to execute a Vim script from the command line, for example
to build a vimball archive from a Makefile.

You can use the -c command line option, e.g.:
gvim -u NONE -U NONE -c "YOUR COMMANDS HERE"

With respect to vimball: There are also (at least) c-based 
(http://www.drchip.org/astronaut/src/index.html#MKVIMBALL) and ruby-based 
(https://github.com/tomtom/vimball.rb) implementations.

Regards


Is there a way to run the commands in -c "YOUR COMMANDS HERE" whithout getting gvim to flash the window (open than immediately close it) ?

I read about mkvimball and vimball.rb on the Vim tips wiki, but I would rather not add new dependencies in my project (C compiler/ruby) if Vim can get the job done. And it can, except it does not do a very nice job with that flashing window that pops up...

Regards,
Timothy Madden

--
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

Reply via email to