On Mon, 20 Jan 2025, Dragan Simic wrote:
> If I may notice, I'm not really sure that the final form [1] of the code > will work as expected, because I think that the "syntax sync minlines=..." > should be executed much later in syntax/kconfig.vim, i.e. the way I did > it originally. [2] > > To clarify, I originally tried executing "syntax sync minlines=..." earlier > in syntax/kconfig.vim while setting "kconfig_minlines" to 300 in my > ~/.vimrc, > and it failed to work as expected with a troublesome Kconfig file, which is > why I moved the execution much later in syntax/kconfig.vim. > > [1] > https://github.com/chrisbra/vim-kconfig/commit/57cca8215ec067506dd5b49ae1ee37eca39a83ab > [2] > https://github.com/chrisbra/vim-kconfig/commit/ad5151e624d6543a4451de309736f3e061b584d9 Can you verify if this works or not? I put it to the top, because you placed it at the else part of the heavy_syntax config variable condition (and the whole if-condition confused me quite a bit) and it would therefore only be effective when the heavy_syntax var wasn't set. But I don't use Kconfig files at all. So please run in a Kconfig buffer :syn sync and vim should output the current setting. Thanks, Christian -- You climb to reach the summit, but once there, discover that all roads lead down. -- Stanislaw Lem, "The Cyberiad" -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/Z47LTMHlRAo2ig%2BH%40256bit.org.