From: Yegappan Lakshmanan, May 17, 2006 5:01 PM
> On 5/17/06, Steve Hall <[EMAIL PROTECTED]> wrote:
> >
> > Is there a way to construct the code below to avoid the "E193
> > :endfunction not inside a function" error in Vim 6.4 when loading
> > a Vim 7.0 script?
[snip]
>
> What about doing the following?
>
> if v:version < 700
> function! MyFunc()
> ....
> endfunction
> else
> function! MyFunc()
> for i in range(tabpagenr('$'))
> ...
> endfor
> endfunction
> endif
Perfect, that solution was somehow escaping me.
Thanks Yegappan.
--
Steve Hall [ digitect mindspring com ]
:: Cream... something good to put in your Vim!
:: http://cream.sourceforge.net