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

Reply via email to