6

Vim has some kind of support for dot-separated compound filetypes like "ruby.rspec" where settings/definitions for both will be loaded. I see mentions of it around the internet but I can't find any mention of it in the docs. Is there a canonical doc on it or an official name for this feature?

1 Answer 1

4

This is described briefly at :h 'filetype':

When a dot appears in the value then this separates two filetype
names.  Example:
    /* vim: set filetype=c.doxygen : */ ~
This will use the "c" filetype first, then the "doxygen" filetype.
3
  • Huh, I kept scanning through the whole :h filetype page and searching for different terms w/o finding it.
    – Mu Mind
    Oct 1, 2015 at 14:15
  • @MuMind: the single quotes are significant. You get different pages with :h filetype and :h 'filetype'. Oct 1, 2015 at 14:38
  • 1
    @PeterLewerin Yep, I know. :h filetype is the large in-depth doc where I expected to find details.
    – Mu Mind
    Oct 1, 2015 at 18:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.