Hello vimers!
I'm using vim-handlebars filetype plugin, link to source: 
https://github.com/nono/vim-handlebars
I noticed the plugin is setting filetype with a dot in the name.
Link to the relevant line in the source code:
https://github.com/nono/vim-handlebars/blob/master/ftdetect/handlebars.vim#L2

Vim seems to be fine with that (see :h 'ft'), but the line above does not seem 
"right". It is essentially loading 2 filetypes, but then running additional 
files with "runtime!", which seems redundant.

I downloaded the project locally and experimented with removing the "runtime" 
from the line above.
But it seems I can't 'nail' all the functionality: either handlebars syntax is 
missing, or 'matchit' plugin support for html or handlebars is not working.
Basically, I don't know how to use this and the docs are terse.

My question is: what is the idiomatic, proper way in vim to use filetype with 
dot (2 filetypes at once)?
Is there a (good) plugin that uses this trick in a different way, so I can 
learn from it? Do you know what might be the problem here?

Any help with this is appreciated!
Bruno

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui