Sunday, October 5, 2014

Find changed lines

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?

--
--
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment