oscarh / vimerl

A set of erlang plugins for VIM. This is not maintained, better use som modern fork of this!
159 stars 99 forks source link

Autocompletion with pathogen doesn't work #14

Closed MasseR closed 13 years ago

MasseR commented 13 years ago

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.

" Pseudo dirname($script)/erlang_completion.erl

oscarh commented 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 commented 13 years ago

Fixed here: https://github.com/jimenezrick/vimerl/commit/e9b3b078aa77814920228cd3c65f5ab1ebe2399b

MasseR commented 13 years ago

@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.

MasseR commented 13 years ago

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.

MasseR commented 13 years ago

On another note. What is the github etiquette with this. Should I also file a pull request?

oscarh commented 13 years ago

I guess you could, but I can also just merge it I think :)

oscarh commented 13 years ago

Pushed to my master branch.