gregsexton / MatchTag

Vim's MatchParen for HTML tags
http://www.vim.org/scripts/script.php?script_id=3818
311 stars 30 forks source link

Is there any way to work with other file extensions? #12

Closed umren closed 12 years ago

umren commented 12 years ago

i work with file extension *.html.twig where plugin is not working, how i can upgrade your plugin to make it work? i don't know vim language well, i looked inside "html.vim" and didn't found something that leads to extensions

umren commented 12 years ago

don't read @ ASK

gregsexton commented 12 years ago

Hi,

Did you get this working then?

Something like:

echo 'runtime! ftplugin/html.vim' > ~/.vim/ftplugin/output_of_cmd.vim

where you should replace 'output_of_cmd' with whatever the result of running set ft? in a *.html.twig buffer is. e.g if the result is filetype=blah then use ~/.vim/ftplugin/blah.vim.

I hope this makes sense.

Thanks,

Greg

umren commented 12 years ago

yeah, after some bash'ing i got it done, i was just upset and didn't read all information about plugin