On 06/09/2010 02:29 PM, Pablo Giménez wrote: > Hi all. > I want to make a sub type for Python. > I mean I want to detect a python file that includes a module called hou, so > it has the line: > import hou > > And then set the filtypetype to be python.hom > So I can inherit all the settings for a python file but on top of this add > some custom syntax settings and also use different tags files. > so my problem is how to make an autocommand that sets this kind of > filetype??? > Thanks >
Probably not the best possible way, but one thing you can do is have a modeline at the end of file (or in first 5 lines on top): # vim:set ft=pythonhom: -ak -- You received this message from the "vim_use" 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
