vim_configurable: add ".../after" plugin dirs to runtimepath

This fixes using e.g. CSApprox when installed with nix.
This commit is contained in:
Bjørn Forsman 2017-07-14 14:22:36 +02:00
parent aff0725a7d
commit 1639429359

View file

@ -24,6 +24,10 @@ let
let pluginname = substitute(d, ".*/", "", "")
if !has_key(seen, pluginname)
exec 'set runtimepath^='.d
let after = d."/after"
if isdirectory(after)
exec 'set runtimepath^='.after
endif
let seen[pluginname] = 1
endif
endfor