set path+=/path/to/modules/** set suffixesadd=.pm,.pl set includeexpr=substitute(v:fname,'TMPLDIR','/path/to/tmpl/dir','')