On Sunday, October 5, 2014 10:57:53 AM UTC-5, Michail Denchev wrote: > I would like to write a plugin which sets the background color depending on > the indentation level. I set the color through signs, but the problem I ran > into is detecting when and where an indentation level has changed. If I do > something like au TextChange,CursorChange I don't know which lines might have > been affected and would need to go through the whole buffer which is too > slow. Is there a better way?
What about using CursorMoved/CursorHold and updating only the visible lines (plus maybe some number of "buffer" lines above and below the visible window)? -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
