Open callumacrae opened 9 years ago
I got installed it with Vundle
Mine is installed with Pathogen. Just git cloned elm.vim
into ~/.vim/bundle
.
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
.
Cloned into ~/.vim/bundle
, didn't work :/
@callumacrae Did you install pathogen? You must install pathogen, and then you should have e.g. ~/.vim/bundle/elm.vim
.
Yes, and I've installed other plugins through it that have worked, and I ran :Helptags
.
It doesn't load the syntax highlighting or anything?
No syntax highlighting, no docs, no commands. It's as if it just isn't loaded.
I'm having the same problem as @callumacrae, I installed it via Vundle.
Same here. No highlight.
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.
Not working with pathogen either
worked after few tries...
I am installing via pathogen. I believe the syntax highlighting is working, but I can't get the commands to work.
I managed to install the vim package with Vundler
using
Bundle 'lambdatoast/elm.vim'
Everyone should really look into vim-plug: https://github.com/junegunn/vim-plug
Also there's another elm vim plugin worth looking into: https://github.com/ElmCast/elm-vim
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?
@viswaug You should file this issue in the ElmCast/elm-vim repository.
@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?
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.
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 that fixed it for me. Thanks a bunch. Appreciate it
@viswaug No problem, I opened a PR that adds this symlink. Though updating vundle may solve this issue as well.
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 :)