Yakov Lerner wrote:
> We do not have autocommand that fires when option is set/changed, right ? > vim 8 maybe ? Can this be added to do todo ? > > For example, when I do 'set tw=70' I want automatically > execute "match Error /\%>70v/". > > I realize I can make a custom command or function to > change two things together. But if this was a good method, then vim > never had autocommands in the first place. The main problem with this is that it's difficult to make this work correctly. Options are set in many places, where the side effects of executing autocommands can break things. E.g., when an option is set from a modeline the autocommands changes buffer (or delete it!). There have been many bugs like that in the past. -- Change is inevitable, except from a vending machine. /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
