From 6eb0c57e8070d641382c8844d35408a2f13cc751 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Thu, 12 Sep 2013 17:31:56 +0200 Subject: Add elixir language support --- ftplugin/elixir.vim | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 ftplugin/elixir.vim (limited to 'ftplugin/elixir.vim') 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 +" 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\)\:\@!\>' . + \ ':' . + \ '\:\@' . + \ ',{:},\[:\],(:)' +endif + +setlocal comments=:# +setlocal commentstring=#\ %s -- cgit v1.2.3