In the last couple of months I only played a little bit with elixir, haven’t had much time to actually build something with it. But now that I am starting to actually use it for a project, I am curious what vim plugins everybody is using to make writing elixir as pleasant as possible inside of vim.
I shared my config in my blog and am very curious on what other vim users here use in their day to day elixir lives. Please share your config .
I installed neomake. Got it to highlight errors, but the :lnext and :lprev commands do not work. (they do with ruby…) Any idea what could be going on??
I did a little more research - testing both Syntastic and Neomake. Here’s what I found:
both Syntastic and Neomake only detect max of one error per run
since there is only one error, :lnext and :lprev will never work
but :ll works !!
So both Syntastic and Neomake are broken for Elixir…
There is a further issue with Neomake. When Neomake performs syntax check, it does not resolve references to Structs. It tags a valid reference to %MyStruct{} with an undefined object error. Syntastic does not have this problem.
For the time being, I’m using Syntastic. BTW there is a maintainer for Syntastic/Elixir - Richard Ramsden. Perhaps it will be possible to work with Richard to fix the multi-error detection problem.
I started out with Janus, too. Its a nice distribution to start exploring vim (for me there are 2 approaches to learning vim, pointed out here). But after a while I wanted to configure vim more to my needs. I wanted to remove functionality that I didn’t need and add others. Basically I started again from scratch and rebuild my vim config based on my needs. This is what lots of people I know did. With this I don’t want to say that Janus is bad or just a beginners tool. Everyone uses Vim in a very unique own way. And for some Janus fits, and for others it doesn’t.
I am beginning to feel the same way - I want more control over my config. Partly because I want to know what’s standard Vim and what I’ve added, as a few times I have gone to do something on the server and it’s not worked (obviously because the config on the server is non-janus).
Thanks for your feedback! I might just strip out Janus and go solo
I see Janus a bit like SpaceMacs - it adds pretty much all the nice things I would want to add anyway, but without the hassle of configuring it all myself.
I am using neovim together with deoplete. Deoplete needs neovim. But you can get the same results with other completion plugins in vim. I think YouComplete me works, not 100% sure though.