Skip to content

Commit 080fc93

Browse files
committed
Narrow scope of implicit ERB YAML files
Closes tpope#545
1 parent 8407484 commit 080fc93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/rails.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ augroup railsPluginDetect
9797
\ endif
9898
autocmd FileType * if RailsDetect() | call rails#buffer_setup() | endif
9999

100-
autocmd BufNewFile,BufReadPost *.yml,*.yml.example,*.yml.sample
100+
autocmd BufNewFile,BufReadPost */config/*.yml{,.example,.sample},*/{test,spec}/fixtures/*.yml
101101
\ if &filetype !=# 'eruby.yaml' && RailsDetect() |
102102
\ set filetype=eruby.yaml |
103103
\ endif

0 commit comments

Comments
 (0)