Dotfiles.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

11 lines
214 B

function! DetectSls()
if !did_filetype()
if match(getline(1), '^#!py') > -1
set ft=python
else
set ft=sls
endif
endif
endfunction
:au BufNewFile,BufRead *.sls,Saltfile call DetectSls()