Hi vim-dev! On Do, 18 Jun 2015, Christian Brabandt wrote:
> > Hi, > here is a patch, that implements an OptionSet autocommand. This can be > used, to execute certain actions when an option is set. The pattern is > matched against the long option name, so one can react to specific > options. E.g. Checking that the 'backupdir' directory exists and can be > created if necessary. It therefore provides the new v:option_new, > v:option_old and v:option_type so one can check the old and new value > and one can also get the scope of the set command. > > This still needs some work and I am also have to write some test for it, > but I figured I ask, whether this feature would be interesting enough to > be included, before I proceed with some more work on it. > > This is also mentioned in the todo list > ,---- > | 7 Autocommand for when an option is changed. Match buffer name or > | option name? > `---- > > Comments? Sample patch: https://github.com/chrisbra/vim-mq-patches/blob/master/optionset_autocommand Best, Christian -- Das Christentum darf andere Religionen nicht klein machen, um selber groß dazustehen. -- Hans Küng -- -- 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]. For more options, visit https://groups.google.com/d/optout.
