elm.vim icon indicating copy to clipboard operation
elm.vim copied to clipboard

Installing

Open callumacrae opened this issue 10 years ago • 24 comments

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 :)

callumacrae avatar Jan 26 '15 11:01 callumacrae

I got installed it with Vundle

ifraixedes avatar Jan 26 '15 21:01 ifraixedes

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

kasbah avatar Jan 27 '15 07:01 kasbah

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.

lambdatoast avatar Jan 29 '15 11:01 lambdatoast

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

callumacrae avatar Jan 29 '15 11:01 callumacrae

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

lambdatoast avatar Jan 29 '15 11:01 lambdatoast

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

callumacrae avatar Jan 29 '15 11:01 callumacrae

It doesn't load the syntax highlighting or anything?

lambdatoast avatar Jan 29 '15 11:01 lambdatoast

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

callumacrae avatar Jan 29 '15 12:01 callumacrae

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

ludvigsen avatar Feb 06 '15 22:02 ludvigsen

Same here. No highlight.

n0um3n4 avatar Feb 21 '15 04:02 n0um3n4

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.

ludvigsen avatar Jun 18 '15 20:06 ludvigsen

Not working with pathogen either

ghost avatar Jul 10 '15 08:07 ghost

worked after few tries...

ghost avatar Jul 10 '15 09:07 ghost

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

pneisen avatar Oct 02 '15 15:10 pneisen

I managed to install the vim package with Vundler using

Bundle 'lambdatoast/elm.vim'

kitofr avatar Oct 13 '15 09:10 kitofr

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

damionvega avatar Feb 06 '16 03:02 damionvega

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

gabrielflorit avatar Feb 06 '16 03:02 gabrielflorit

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?

vishcious avatar Feb 17 '16 03:02 vishcious

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

gabrielflorit avatar Feb 17 '16 03:02 gabrielflorit

@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 avatar Feb 17 '16 12:02 vishcious

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.

vishcious avatar Feb 18 '16 22:02 vishcious

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.

patricksimpson avatar Mar 02 '16 21:03 patricksimpson

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

vishcious avatar Mar 02 '16 23:03 vishcious

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

patricksimpson avatar Mar 03 '16 00:03 patricksimpson