bazelbuild / vim-ft-bzl

Apache License 2.0
27 stars 13 forks source link

Bazel file detection defeated by MacVim's filetype.vim #8

Open patspam opened 8 years ago

patspam commented 8 years ago

After installing this plugin and opening a *.bzl file in MacVim, I get:

:verbose set ft?
filetype=conf
Last set from /Applications/MacVim.app/Contents/Resources/vim/runtime/filetype.vim

I'm currently working around this via:

au BufRead,BufNewFile *.bzl,BUILD,WORKSPACE set ft=bzl

(Note: I'm using set ft= instead of setf in order to defeat MacVim's filetype.vim)

dbarnett commented 8 years ago

Yeah, reasonable to change it to set ft= instead of setf. No point merging that change into vim since the builtin version has control over precedence.

BTW, I remember that aggressive conf rule in older versions of vim but I don't see it anymore in recent versions.