Elixir with Vim

Hello.

I often use phoenix for developing web application. My main text editor is vscode because I don’t know a way to write elixir codes with vim… and I don’t know any people who use vim for writing elixir around me.

Does anyone use vim when you write elixir?
I’m interested in .vimrc for elixir.

3 Likes
3 Likes

I use Vim for Elixir. Here is my .vimrc:

I recently set up vim-projectionist using an article by @germsvel and it’s been a great addition!

5 Likes

Here’s a recent article: Vim as an Elixir IDE.

5 Likes

If you’re already familiar with Vim, please go ahead and try some of the above suggestions.

Though, if you’re very new to Vim, I’d suggest to try out Vim with minimal setup, so you get the basics right and then add configurations later.

Also, if you can be more specific about what you’re looking for in Vim with regards to elixir, like auto-completion, code snippets, etc., that’d be great for people helping you.

Hope the below articles might help you a bit:

https://bitboxer.de/2016/11/13/vim-for-elixir

4 Likes

This details my setup for using the Elixir Language Server (elixir-ls) with Vim: https://www.mitchellhanberg.com/post/2018/10/18/how-to-use-elixir-ls-with-vim/

You will also need to use the elixir language plugin for syntax support https://github.com/elixir-editors/vim-elixir

4 Likes

Depending on how advanced your Vim requirements are, you may be happy with Vim emulation in VS Code, which still gives you the benefits of the VS Code environment.

1 Like