Add elixir language support

This commit is contained in:
Adam Stankiewicz
2013-09-12 17:31:56 +02:00
parent 7d1b7e6f71
commit 6eb0c57e80
6 changed files with 275 additions and 0 deletions

25
ftplugin/elixir.vim Normal file
View File

@@ -0,0 +1,25 @@
" Vim filetype plugin
" Language: Elixir
" Maintainer: Carlos Galdino <carloshsgaldino@gmail.com>
" URL: https://github.com/elixir-lang/vim-elixir
if (exists("b:did_ftplugin"))
finish
endif
let b:did_ftplugin = 1
" Matchit support
if exists("loaded_matchit") && !exists("b:match_words")
let b:match_ignorecase = 0
let b:match_words = '\<\%(do\|fn\)\:\@!\>' .
\ ':' .
\ '\<\%(else\|elsif\|catch\|after\|rescue\)\:\@!\>' .
\ ':' .
\ '\:\@<!\<end\>' .
\ ',{:},\[:\],(:)'
endif
setlocal comments=:#
setlocal commentstring=#\ %s