Last active
December 24, 2015 18:19
-
-
Save zealot128/6842500 to your computer and use it in GitHub Desktop.
vim ansible specific yaml highlightings
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
augroup ansible_yaml | |
autocmd! | |
au BufRead playbook.yml,roles/*yml,ansible*yml call SetAnsibleOpts() | |
augroup END | |
function SetAnsibleOpts() | |
syntax match yamlInterpolate '$\w\+\|{{[^}]\+}}' | |
syntax match yamlInterpolate '$\w\+\|{{[^}]\+}}' contained containedin=yamlString | |
syntax match yamlConstant '\(with_items\|when\|name\|notify\|ignore_errors\|changed_when\|register\|with_password\):' | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment