Thanks, I know about this solution. But the problem is that I need it to be dynamic, so filetype selection should be when the file is loaded
2010/6/9 AK <[email protected]> > 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 > -- Un saludo Best Regards Pablo Giménez -- 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
