You can specify to use multiple filetypes at the same time. For example:
:setfiletype html.php
But most of filetype plugings and syntax files are not designed for such cases.
See also :help ‘filetype’
More Related Contents:
- How do I exit the Vim editor?
- What is your most productive shortcut with Vim?
- Using Vim’s tabs like buffers
- How to paste yanked text into the Vim command line
- Why should I use an IDE? [closed]
- Turning off auto indent when pasting text into vim
- Where is my .vimrc file?
- Search for selection in Vim
- How to paste over without overwriting register
- A more useful statusline in vim? [closed]
- How can I automatically add some skeleton code when creating a new file with vim
- How to add line numbers to range of lines in Vim?
- Is there a “vim runtime log”?
- Vim auto-generate ctags
- How to prevent the cursor from moving back one character on leaving Insert mode in Vim?
- Using vim’s f command over multiple lines
- How to effectively work with multiple files in Vim
- Why is \r a newline for Vim?
- Best way to insert timestamp in Vim?
- Can terminals detect or ?
- Auto-open NERDTree in “EVERY” tab
- How do I fix the indentation of an entire file in Vi?
- Multiple commands on same line
- How can you automatically remove trailing whitespace in vim
- Vim – how to run a command immediately when starting vim?
- How to map Ctrl+A and Ctrl+Shift+A differently?
- Get rid of Vim’s highlight after searching text
- Why would Vim add a new line at the end of a file?
- Does Vim load plugins after loading vimrc?
- Enabling markdown highlighting in Vim