From 607727f0793d7ccea12770db91a0868c27877afd Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Mon, 11 Sep 2017 11:15:57 -0400 Subject: Salt states should use YAML filetype --- init.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'init.vim') diff --git a/init.vim b/init.vim index 2124c4b..b29971d 100644 --- a/init.vim +++ b/init.vim @@ -118,6 +118,7 @@ set shiftwidth=4 set noexpandtab + autocmd Filetype python call SetPythonOptions() autocmd Filetype htmldjango call SethtmldjangoOptions() autocmd Filetype json call SetJsonOptions() @@ -195,6 +196,9 @@ function SetYamlOptions() set noic endfunction +" This is specifically for Salt's state files 'sls' +autocmd BufNewFile,BufRead *.sls set filetype=yaml + function! PhpSyntaxOverride() hi! def link phpDocTags phpDefine -- cgit v1.2.3