Re: using mode lines to source files
- Eric Smith wrote:
>You could :set ft=custom in a modeline. Read
> I want to put a command in a modeline to source specific syntax files.
> The faq says that the modeline system is crippled for security reasons
> but there is a function from Benjamin Elijah Griffin at:
> It dont seem to be there though?
for how to detect the "custom" filetype. Then, read
(perhaps you already have) to define a syntax file for "custom". The
custom.vim syntax file could look like
:syn match Foo "foo"
:hi Foo guibg=lightyellow guifg=blue
HTH --Benji Fisher