All,

Buildroot uses Config.in as the Kconfig files.  Setting the line:

au BufNewFile,BufRead Kconfig,Kconfig.debug   setf kconfig

to:

au BufNewFile,BufRead Kconfig,Kconfig.debug,Config.in   setf kconfig

Works for these Kconfig files in Buildroot.

HOWEVER, for some strange reason if there is a comment at the top of
the file, the file is no longer recognized as a Kconfig file, but as
a <something> source file.  I knew what it was last week, but cannot
recall at the moment.  I want to say it was Python or something.  I
removed lines from filetypes.vim until I found the culprit.  The match
case is looking for # in column 1 of lines 1 and 3.  Since I had a
multi-line comment, it matched.  The bummer part is I couldn't figure
out how to make the Kconfig be higher weight than the one that matched
it.  I attempted to move the au line above to the top of the section,
but this yielded nothing.  Do I need to move the line:

au BufNewFile,BufRead Kconfig.*                 call s:StarSetf('kconfig')

In stead?

If you know of a fix for this, please pass it along to me.

Thanks,
Andy

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui