Skip to content

Commit

Permalink
Add documentation of filetypes to README
Browse files Browse the repository at this point in the history
In the event that auto-detection doesn't work, it's good to
know the filetypes used so you can manually override as
needed.
  • Loading branch information
DavidWittman committed Oct 14, 2015
1 parent 86513aa commit 8d5a43f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ This is a vim syntax plugin for Ansible 2.0, it supports YAML playbooks, Jinja2
- Jinja2 templates are detected if they have a *.j2* suffix
- Files named `hosts` will be treated as Ansible hosts files

You can also set the filetype to `ansible`, `ansible_template`, or `ansible_hosts` if auto-detection does not work (e.g. `:set ft=ansible`).

This plugin should be quite reliable, as it sources the original formats and simply modifies the highlights as appropriate. This also enables a focus on simplicity and configurability instead of patching bad syntax detection.

##### examples
Expand Down

0 comments on commit 8d5a43f

Please sign in to comment.