Created
October 13, 2017 17:35
-
-
Save lordcirth/ad441b0aaebc0e8a7d10533e8bf5e541 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configure vim to treat .sls as YAML | |
salt_editing_vim: | |
file.managed: | |
- name: '/usr/share/vim/vimfiles/ftdetect/salt.vim' | |
# ftdetect/ doesn't exist by default | |
- makedirs: True | |
# SLS files are YAML files | |
- contents: 'autocmd BufRead,BufNewFile *.sls setfiletype yaml | set expandtab tabstop=2 shiftwidth=2' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment