Last Updated: February 25, 2016
·
529
· lnl7

Matchit for Elixir

The the elixir language, currently does not have support for the vim-matchit 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\>,{:},\[:\],(:)'