/vim-ansible-yaml

Add additional support for Ansible in VIM

Primary LanguageVim Script

SEEKING MAINTAINER

If you would like to become the maintainer of this plugin, please make an issue citing at least one example of your work with Vimscript.

vim-ansible-yaml

Gittip donate button PayPayl donate button

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.

Install

Using Vundle

  1. Add the following to your .vimrc where other bundles are located:

     Bundle 'chase/vim-ansible-yaml'
    
  2. Run from command line:

     $ vim +BundleInstall
    

Using pathogen

  1. Check out the repository into your bundle path:

     $ cd ~/.vim/bundle
     $ git clone git://github.com/chase/vim-ansible-yaml.git
    

Normal

  1. 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
    

Thanks

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.