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?
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:
but it doesn't seem to work when I open
.foobar
files. Is there a way to achieve this?Thank you for your assistance!