On 2008-11-05, GQ <[EMAIL PROTECTED]> wrote:
> Hi there.
> 
> I'm running some scripts from cron.
> 
> There I need to get current VIMRUNTIME (to not hardcode it every time
> vim updates).
> 
> The following string works well:
> $vim -e --cmd ':echo $$VIMRUNTIME|q'
> and I got VIMRUNTIME from it's stderr
> 
> But if I run it from cronjob, I got nothing.
> 
> Any ideas? How to run vim without terminal, or how to get VIMRUNTIME
> other way?

Here is the gist of a command line I use to run vim as a filter:

   vim -X -E -s -u NONE -c ... -c 'wq' "$@"

The key is the -s option:

   :help -s

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