Skip to content
This repository has been archived by the owner on May 25, 2019. It is now read-only.

Fix filetype detection on Windows #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andre-luiz-dos-santos
Copy link

expand() returns backslashes on Windows, but the regular expression was expecting forward slashes only.
autocmd should be able to do everything the removed code was doing, and it works on Windows too.

expand() returns backslashes on Windows, but the regular expression was expecting forward slashes only.
autocmd should be able to do everything the removed code was doing, and it works on Windows too.
@@ -6,7 +6,7 @@
" Latest Revision: 2015-03-23
" URL: https://github.com/chase/vim-ansible-yaml

autocmd BufNewFile,BufRead *.yml,*.yaml,*/{group,host}_vars/* call s:SelectAnsible("ansible")
autocmd BufNewFile,BufRead */roles/*.{yml,yaml},*/{group,host}_vars/* execute "set filetype=ansible"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this completely negate the need for the function s:SelectAnsible?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants