Closed MasseR closed 13 years ago
Hi!
It would be really nice if you could supply a patch for this. I haven't used pathogen, so I'd have to set that up to try and fix it.
/Oscar
@jimenezrick That's a manual solution which would be ok too, but I'd assume that for backwards compatability, automatic finding would be better. I have a couple of hours at my disposal, so I'll take a crack at it.
Commit c2ce820 works for me. As far as I understand it checks the relative path to the script, strips off the filename path and appends the erl file.
On another note. What is the github etiquette with this. Should I also file a pull request?
I guess you could, but I can also just merge it I think :)
Pushed to my master branch.
When using pathogen, it's recommended to clone the submodule into ~/.vim/bundle/project. The autocompletion has set the default path for completion as "~/.vim/autoload/erlang_completion.vim", which doesn't exist when cloned as submodule into bundle/.
If you can get the current script path from vimL, you could use the relative path from the script.