aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2017-09-11 11:15:57 -0400
committerMitch Riedstra <mitch@riedstra.us>2017-09-11 11:15:57 -0400
commit607727f0793d7ccea12770db91a0868c27877afd (patch)
treeb1aa77ebd67c6c8a167b40581dd6e7cd7b775b49
parent313a9855e4195205f949a9c0afbbdb4af8fbaca2 (diff)
downloadvim-cfg-607727f0793d7ccea12770db91a0868c27877afd.tar.gz
vim-cfg-607727f0793d7ccea12770db91a0868c27877afd.tar.xz
Salt states should use YAML filetype
-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