codekingpro/portable-devtools
114k
1" Elixir filetype plugin2" Language: Elixir3" Maintainer: Mitchell Hanberg <vimNOSPAM@mitchellhanberg.com>4" Last Change: 2023 Dec 275 6if exists("b:did_ftplugin")7 finish8endif9let b:did_ftplugin = 110 11let s:save_cpo = &cpo12set cpo&vim13 14" Matchit support15if exists('loaded_matchit') && !exists('b:match_words')16 let b:match_ignorecase = 017 18 let b:match_words = '\:\@<!\<\%(do\|fn\)\:\@!\>' .19 \ ':' .20 \ '\<\%(else\|catch\|after\|rescue\)\:\@!\>' .21 \ ':' .22 \ '\:\@<!\<end\>' .23 \ ',{:},\[:\],(:)'24endif25 26setlocal shiftwidth=2 softtabstop=2 expandtab iskeyword+=!,?27setlocal comments=:#28setlocal commentstring=#\ %s29 30setlocal indentkeys=0#,!^F,o,O31" Enable keys for blocks32setlocal indentkeys+=0=after,0=catch,0=do,0=else,0=end,0=rescue33" Enable keys that are usually the first keys in a line34setlocal indentkeys+=0->,0\|>,0},0],0),>35 36let b:undo_ftplugin = 'setlocal sw< sts< et< isk< com< cms< indk<'37 38let &cpo = s:save_cpo39unlet s:save_cpo40 