Skip to content

Instantly share code, notes, and snippets.

@lordcirth
Created October 13, 2017 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lordcirth/ad441b0aaebc0e8a7d10533e8bf5e541 to your computer and use it in GitHub Desktop.
Save lordcirth/ad441b0aaebc0e8a7d10533e8bf5e541 to your computer and use it in GitHub Desktop.
# 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