On Mon, 14 Aug 2006 at 9:43am, Charles E Campbell Jr wrote:

> 4mir Salihefendic wrote:
>
> > Is there a neat way to source vim files in a directory?
> > Currently I use following solution that relies on "ls" - it's not
> > feasible on other than Unix systems.
>
> First, you could use glob() instead of system()+ls.
>
> Another idea: you could temporarily change the runtimepath
> and use :runtime (not tested):
>
>   let keep_rtp= &rtp
>   let &rtp= "PathToADirectory"
>   runtime
>   let &rtp= keep_rtp
>
> Regards,
> Chip Campbell

Shouldn't it be more like ":runtime *.vim"?

-- 
Thanks,
Hari

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to