We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 16473d4 + 62955ac commit b27b35eCopy full SHA for b27b35e
ftdetect/elixir.vim
@@ -1,2 +1,10 @@
1
au BufRead,BufNewFile *.ex,*.exs set filetype=elixir
2
au FileType elixir setl sw=2 sts=2 et iskeyword+=!,?
3
+
4
+function! s:DetectElixir()
5
+ if getline(1) =~ '^#!.*\<elixir\>'
6
+ set filetype=elixir
7
+ endif
8
+endfunction
9
10
+autocmd BufNewFile,BufRead * call s:DetectElixir()
0 commit comments