I am sourcing a local vimrc using the plugin from the first response here: Vim: apply settings on files in directory
Now what i'd like to do is to add the curren path of this local vimrc file to vims path.
I do know that %:p:h
gives me the path of the current file. But it is of the file being opened not of the config file being soucred.
let s:local_path = expand('%:p:h')
exec "set path+=".s:local_path
Does anyone know how to get the path of the file being sourced?