Adds additional syntax highlighting and fixes indentation for Ansible's dialect of YAML.
Ansible YAML files are detected based on the presence of a structure following Ansible's Playbook Best Practices.
Using Vundle
-
Add the following to your
.vimrc
where other bundles are located:Bundle 'chase/vim-ansible-yaml'
-
Run from command line:
$ vim +BundleInstall
Using pathogen
-
Check out the repository into your bundle path:
$ cd ~/.vim/bundle $ git clone git://github.com/chase/vim-ansible-yaml.git
-
Check out the repository and copy the following to
.vim/
directory or any other run time path, keeping their directory structure intact:ftdetect/ansible.vim syntax/ansible.vim syntax/include/jinja.vim syntax/include/yaml.vim indent/ansible.vim
A huge thanks to Igor Vergeichik and Nikolai Weibull for their work on the YAML syntax that this bundle uses.
Also, thank you, Armin Ronacher, for the
simple and effective Jinja syntax file.