Closed davidhalter closed 11 years ago
I see now at least one reason why this might make sense: If I want to modify certain configuration variables of the plugin, it's much easier to source it afterwards.
I see now at least one reason why this might make sense: If I want to modify certain configuration variables of the plugin, it's much easier to source it afterwards.
That's right. Additionally, several plugins which define key mappings for useful functions try not to override key mappings defined by users. If plugin/*.vim are automatically :source'd, we have to provide a way to emulate user's vimrc to reproduce such situations. It makes things complicated.
Therefore I prefer writing :source explicitly.
For jedi-vim I'm implementing some kind of testing. Because of it's Python nature, I wanted to lower dependencies and came up with this
py.test
script: https://github.com/davidhalter/jedi-vim/blob/dev/conftest.pyThe only important thing that it does is actually invoking vspec like this:
Where
test/goto.vim
is this file: https://github.com/davidhalter/jedi-vim/blob/dev/test/goto.vimTesting autoload files works fine, but using plugins, doesn't. Therefore I had to add
That's of course possible, but a little bit annoying. Is this intentional? Or did I call
vspec
the wrong way? IMHOvspec
should automatically source plugin files, without me sourcing them.Thanks for your work! It really seems to be a nice project for testing vim scripts.