vim-ft-bzl icon indicating copy to clipboard operation
vim-ft-bzl copied to clipboard

Bazel file detection defeated by MacVim's filetype.vim

Open patspam opened this issue 8 years ago • 1 comments

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)

patspam avatar Nov 12 '15 04:11 patspam

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.

dbarnett avatar Nov 12 '15 06:11 dbarnett