posva / vim-vue

Syntax Highlight for Vue.js components
MIT License
1.29k stars 103 forks source link

Enable vim-vue features for custom file extensions #166

Open L-Jovi opened 11 months ago

L-Jovi commented 11 months ago

Hi there,

Due to certain requirements, I find myself using vim-vue to open files with extensions other than .vue, such as .foobar. I'd like to achieve the same effects (e.g., syntax highlighting) when opening .foobar files as I do with .vue files.

I've tried adding the following vim configuration:

au BufRead,BufNewFile *.foobar setfiletype vue

but it doesn't seem to work when I open .foobar files. Is there a way to achieve this?

Thank you for your assistance!