Skip to content
Vim configuration files for Elixir
Ruby Vim script Elixir Shell
Branch: master
Clone or download
Pull request Compare This branch is 21 commits behind elixir-editors:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
autoload/elixir
bin
compiler
ftdetect
ftplugin
indent
spec
syntax
.gitignore
.travis.yml
Gemfile
Gemfile.lock
ISSUE_TEMPLATE.md
LICENSE
README.md
large_file.ex
manual_install.sh

README.md

vim-elixir

Build Status

Elixir support for vim

Description

Features:

  • Syntax highlighting for Elixir and EEx files
  • Filetype detection for .ex, .exs and .eex files
  • Automatic indentation

Installation

Plugin Managers

# vim 8 native package loading
# http://vimhelp.appspot.com/repeat.txt.html#packages
git clone https://github.com/elixir-lang/vim-elixir.git ~/.vim/pack/my-packages/start
# pathogen
git clone https://github.com/elixir-lang/vim-elixir.git ~/.vim/bundle/vim-elixir
" vim-plug
Plug 'elixir-editors/vim-elixir'

" Vundle
Plugin 'elixir-editors/vim-elixir'

" NeoBundle
NeoBundle 'elixir-editors/vim-elixir'

Manual installation

Run ./manual_install.sh to copy the contents of each directory in the respective directories inside ~/.vim.

mix format Integration

We've decided not to include mix format integration into vim-elixir. If you'd like to set it up yourself, you have the following options:

  • For asynchronous execution of the formatter, have a look at vim-mix-format
  • Add it as a formatprg (e.g. set formatprg=mix\ format\ -)

Development

Run the tests: bundle exec parallel_rspec spec Spawn a vim instance with dev configs: bin/spawn_vim

You can’t perform that action at this time.