Skip to content
Vim configuration files for Elixir
Branch: master
Clone or download
Latest commit 8e4782f Apr 25, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
autoload vim-dadbod integration for applications using Ecto (#481) Mar 13, 2019
bin
compiler Add support for more compilers (#436) May 25, 2018
ftdetect add support for live view templates (#483) Mar 18, 2019
ftplugin Add Phoenix LiveEEx Template (.leex) file type support (2) (#490) Apr 17, 2019
indent Fix indentation issue with vim 8 - fixes #370 Sep 18, 2017
spec Add Phoenix LiveEEx Template (.leex) file type support (2) (#490) Apr 17, 2019
syntax Add Phoenix LiveEEx Template (.leex) file type support (2) (#490) Apr 17, 2019
.gitignore gitignore test_indent.result Jun 27, 2017
.travis.yml Ensure that no `focus` are being used in CI Dec 1, 2016
Dockerfile add docker container file with isolated vim instance Apr 25, 2019
Gemfile add parallel_tests Mar 20, 2018
Gemfile.lock add parallel_tests Mar 20, 2018
ISSUE_TEMPLATE.md Update ISSUE_TEMPLATE.md Mar 28, 2017
LICENSE Add a license file. Jun 1, 2015
README.md
docker-compose.yml
large_file.ex
manual_install.sh Fix issue-459 (#460) Dec 28, 2018
test.vimrc add docker container file with isolated vim instance Apr 25, 2019

README.md

vim-elixir

Build Status

Elixir support for vim

Description

Features:

  • Syntax highlighting for Elixir and EEx files
  • Filetype detection for .ex, .exs, .eex and .leex files
  • Automatic indentation
  • Integration between Ecto projects and vim-dadbod for running SQL queries on defined Ecto repositories

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/vim-elixir
# 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 container with vim and dev configs: docker-compose build && docker-compose run vim

You can’t perform that action at this time.