| 
									
										
										
										
											2022-04-27 15:25:03 +01:00
										 |  |  | " Elixir filetype plugin | 
					
						
							|  |  |  | " Language: Elixir | 
					
						
							|  |  |  | " Maintainer:	Mitchell Hanberg <vimNOSPAM@mitchellhanberg.com> | 
					
						
							| 
									
										
										
										
											2022-09-27 17:30:34 +01:00
										 |  |  | " Last Change: 2022 Sep 20 | 
					
						
							| 
									
										
										
										
											2022-04-27 15:25:03 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | if exists("b:did_ftplugin") | 
					
						
							|  |  |  |   finish | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | let b:did_ftplugin = 1 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-08-15 18:51:32 +01:00
										 |  |  | let s:save_cpo = &cpo | 
					
						
							|  |  |  | set cpo&vim | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Matchit support | 
					
						
							|  |  |  | if exists('loaded_matchit') && !exists('b:match_words') | 
					
						
							|  |  |  |   let b:match_ignorecase = 0 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   let b:match_words = '\:\@<!\<\%(do\|fn\)\:\@!\>' . | 
					
						
							|  |  |  |         \ ':' . | 
					
						
							|  |  |  |         \ '\<\%(else\|catch\|after\|rescue\)\:\@!\>' . | 
					
						
							|  |  |  |         \ ':' . | 
					
						
							|  |  |  |         \ '\:\@<!\<end\>' . | 
					
						
							|  |  |  |         \ ',{:},\[:\],(:)' | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-09-27 17:30:34 +01:00
										 |  |  | setlocal shiftwidth=2 softtabstop=2 expandtab iskeyword+=!,? | 
					
						
							|  |  |  | setlocal comments=:# | 
					
						
							| 
									
										
										
										
											2022-04-27 15:25:03 +01:00
										 |  |  | setlocal commentstring=#\ %s | 
					
						
							| 
									
										
										
										
											2022-08-15 18:51:32 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-09-27 17:30:34 +01:00
										 |  |  | let b:undo_ftplugin = 'setlocal sw< sts< et< isk< com< cms<' | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-08-15 18:51:32 +01:00
										 |  |  | let &cpo = s:save_cpo | 
					
						
							|  |  |  | unlet s:save_cpo |