Skip to content

Instantly share code, notes, and snippets.

View axodys's full-sized avatar

Jason Gilman axodys

View GitHub Profile
@zealot128
zealot128 / ansible.vim
Last active December 24, 2015 18:19
vim ansible specific yaml highlightings
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