summaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin')
-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