aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.vim4
1 files changed, 4 insertions, 0 deletions
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