summaryrefslogtreecommitdiffstats
path: root/ftplugin/elixir.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2013-09-12 17:31:56 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2013-09-12 17:31:56 +0200
commit6eb0c57e8070d641382c8844d35408a2f13cc751 (patch)
tree4ed16fc05df5e724c031c39d8c773998643a06be /ftplugin/elixir.vim
parent7d1b7e6f7123cd8b14f02221c7ec37d17d5d527e (diff)
downloadvim-polyglot-6eb0c57e8070d641382c8844d35408a2f13cc751.tar.gz
vim-polyglot-6eb0c57e8070d641382c8844d35408a2f13cc751.zip
Add elixir language support
Diffstat (limited to 'ftplugin/elixir.vim')
-rw-r--r--ftplugin/elixir.vim25
1 files changed, 25 insertions, 0 deletions
diff --git a/ftplugin/elixir.vim b/ftplugin/elixir.vim
new file mode 100644
index 00000000..5571fcf5
--- /dev/null
+++ b/ftplugin/elixir.vim
@@ -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