On 5/26/06, Zdenek Sekera <[EMAIL PROTECTED]> wrote:
> -----Original Message-----
> From: Charles E Campbell Jr [mailto:[EMAIL PROTECTED]
> Sent: 26 May 2006 16:19
> To: Zdenek Sekera
> Cc: vim-dev@vim.org
> Subject: Re: source, runtime and all that
>
> Zdenek Sekera wrote:
>
> >>>>I also thought 'runtime' is somehow equivalent
> >>>>to :source, except it is smart enough
> >>>>to use 'runtimepath'. Using the same test above
> >>>>(':runtime test.vim') I found this does *not*
> >>>>fire up the autocmd while :source does.
> >>>>
> >>>>Is this intentional or can it be considered a bug?
> >>>>
> >>>>
>
> I'd guess it was intentional.  The help for :source
> explicitly mentions
> that using it triggers the SourcePre autocommand, and nowhere in the
> help for :runtime does it mention doing so.  OTOH, perhaps
> its an oversight!

It really bothers me it doesn't.
I've sent an email to Bram, let's wait from his vac return
if he can make it work.

---Zdenek


Meanwhile, I think it should be fairly simple to make your own version
of runtime as a Vim script which looks through the runtime (and
whatever) path using "source" when it finds a match.

Reply via email to