Last Updated: February 25, 2016
·
546
· lnl7

Matchit for Elixir

The the [elixir language][1], currently does not have support for the [vim-matchit][2] plugin,
adding this to your .vimrc should fix that.

autocmd FileType elixir let b:match_words = '\<\%(case\|cond\|if\|unless\|try\|loop\|receive\|fn\|' .
      \ 'defmodule\|defimpl\|defmacro\|defdelegate\|defexception\|defcallback\|defoverridable\|defp\|def\|test\)\>=\@!:' .
      \ '\<\%(else\|elsif\|catch\|after\|rescue\)\>:' .
      \ '\<end\>,{:},\[:\],(:)'

[1]: https://github.com/huffman/vim-elixir
[2]: http://www.vim.org/scripts/script.php?script_id=39