> Using a timer won't help much, since you do not know when the state has > changed. You can use autocommands, e.g.: > if mode() =~ [iR] > au InsertLeave * call DoTheWork() > endif > > There is no generic autocommand event for changing mode, perhaps that is > want you are looking for? Or a "NormalMode" event for when nothing is > pending? That may take a while though.
Thanks, Bram. This gives us food for thought; we'll continue investigating the test failures to see if we can work out where things are going wrong. -- -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CACoUkn5RPm5GrJA1aXDiz32T4dvm3wJ-hSZ24VrSEe0yNwaVog%40mail.gmail.com.
