lambdatoast / elm.vim

Vim plugin for the Elm programming language
MIT License
277 stars 25 forks source link

Installing #14

Open callumacrae opened 9 years ago

callumacrae commented 9 years ago

How do I actually install this? I'm not great at vim, and the usual stuff I do with pathogen doesn't seem to load the plugin.

Sorry for being a noob :)

ifraixedes commented 9 years ago

I got installed it with Vundle

kasbah commented 9 years ago

Mine is installed with Pathogen. Just git cloned elm.vim into ~/.vim/bundle.

lambdatoast commented 9 years ago

Yes, easiest way to manage plugins is to install vim pathogen. And after you have pathogen installed, installing a plugin is a matter of just putting the plugin's directory into ~/.vim/bundle.

callumacrae commented 9 years ago

Cloned into ~/.vim/bundle, didn't work :/

lambdatoast commented 9 years ago

@callumacrae Did you install pathogen? You must install pathogen, and then you should have e.g. ~/.vim/bundle/elm.vim.

callumacrae commented 9 years ago

Yes, and I've installed other plugins through it that have worked, and I ran :Helptags.

lambdatoast commented 9 years ago

It doesn't load the syntax highlighting or anything?

callumacrae commented 9 years ago

No syntax highlighting, no docs, no commands. It's as if it just isn't loaded.

ludvigsen commented 9 years ago

I'm having the same problem as @callumacrae, I installed it via Vundle.

thelastinuit commented 9 years ago

Same here. No highlight.

ludvigsen commented 9 years ago

Just if there are other people having issues, I got it working by installing pathogen, so it seems like it somehow works with pathogen but not vundle.

ghost commented 9 years ago

Not working with pathogen either

ghost commented 9 years ago

worked after few tries...

pneisen commented 9 years ago

I am installing via pathogen. I believe the syntax highlighting is working, but I can't get the commands to work.

kitofr commented 9 years ago

I managed to install the vim package with Vundler using

Bundle 'lambdatoast/elm.vim'
damionvega commented 8 years ago

Everyone should really look into vim-plug: https://github.com/junegunn/vim-plug

gabrielflorit commented 8 years ago

Also there's another elm vim plugin worth looking into: https://github.com/ElmCast/elm-vim

vishcious commented 8 years ago

I tried this plugin with Vundle by adding (Plugin 'elmcast/elm-vim.git') to my .vimrc and running ":PluginInstall", but couldn't get it to work.

The error on running ":ElmRepl" is "E492: Not an editor command: ElmRepl"

The ":PluginList" command lists the plugin in. The files have been checkout into the ~/.vim/bundle folder. But the ":scriptnames" command does not list the "elm.vim" file in the plugin folder as being loaded. The ":func ElmRepl" errors with "E123: Undefined function: ElmRepl".

Any way to troubleshoot why the plugin functions are not getting loaded? Any log files anywhere i should look into?

gabrielflorit commented 8 years ago

@viswaug You should file this issue in the ElmCast/elm-vim repository.

vishcious commented 8 years ago

@gabrielflorit oops. I actually meant to say that used (Plugin 'lambdatoast/elm.vim.git') in my .vimrc file. And this issue is relevant here. I did try the other plugin too as someone recommended it here. Any ideas why the functions from the plugin are not loading? Any way to debug it?

vishcious commented 8 years ago

vimlog.txt Ok, I am back with more info. I am attaching my vim log file above. It doesn't seem to be loading the "elm.vim" file in the "~/.vim/bundle/elm.vim/ftplugin" folder. It does seem to be looking for "~/.vim/bundle/elm.vim/ftplugin.vim" from the logs. So, I tried creating a symlink to the "~/.vim/bundle/elm.vim/ftplugin/elm.vim" file at "~/.vim/bundle/elm.vim/ftplugin.vim" and that doesn't seem to load it either. But, if i source it with ":so ~/.vim/bundle/elm.vim/ftplugin/elm.vim", the functions are loaded and it works.

patricksimpson commented 8 years ago

In the elm.vim directory run: ln -s ftplugin plugin The plugin directory is needed for vundle/bundle installs. I hope this helps. This needs fixed in the repository.

vishcious commented 8 years ago

@patricksimpson that fixed it for me. Thanks a bunch. Appreciate it

patricksimpson commented 8 years ago

@viswaug No problem, I opened a PR that adds this symlink. Though updating vundle may solve this issue as well.