Skip to content

Instantly share code, notes, and snippets.

@motemen
Created June 22, 2015 05:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save motemen/a67bf535456262a0f9b0 to your computer and use it in GitHub Desktop.
Save motemen/a67bf535456262a0f9b0 to your computer and use it in GitHub Desktop.
setlocal path^=lib
setlocal path^=extlib
setlocal path^=t/lib
setlocal path^=modules/*/lib
setlocal path^=modules/*/t/lib
setlocal path^=../../modules/*/lib
setlocal path^=local/lib/perl5
setlocal path^=local/lib/perl5/darwin-2level
setlocal includeexpr=substitute(substitute(v:fname,'^.\\{-}\\([A-Za-z0-9_:]\\+\\)[^A-Za-z0-9_:]*$','\\1.pm',''),'::','/','g')
setlocal suffixesadd=.pm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment