Re: Capturing setting ro/noro

2015-02-26 Thread Tim Chase
On 2015-02-26 12:01, Christian Brabandt wrote: I had to dismiss a solution based on CursorHold as it isn't immediate. Sadly there is no ReadonlyChanged event... Where in the sources would I start btw. if I wanted to implement a new event? I would rather add a new autocommand au

Re: Capturing setting ro/noro

2015-02-26 Thread Salman Halim
On Feb 26, 2015 11:36 AM, Tim Chase v...@tim.thechases.com wrote: On 2015-02-26 12:01, Christian Brabandt wrote: I had to dismiss a solution based on CursorHold as it isn't immediate. Sadly there is no ReadonlyChanged event... Where in the sources would I start btw. if I wanted to

Re: Capturing setting ro/noro

2015-02-26 Thread David Fishburn
On Thu, Feb 26, 2015 at 12:17 PM, Salman Halim salmanha...@gmail.com wrote: On Feb 26, 2015 11:36 AM, Tim Chase v...@tim.thechases.com wrote: On 2015-02-26 12:01, Christian Brabandt wrote: I had to dismiss a solution based on CursorHold as it isn't immediate. Sadly there is no

Re: Capturing setting ro/noro

2015-02-26 Thread Christian Brabandt
Hi Tim! On Do, 26 Feb 2015, Tim Chase wrote: On 2015-02-26 12:01, Christian Brabandt wrote: I had to dismiss a solution based on CursorHold as it isn't immediate. Sadly there is no ReadonlyChanged event... Where in the sources would I start btw. if I wanted to implement a new

Re: Capturing setting ro/noro

2015-02-26 Thread Christian Brabandt
Hi Axel! On Do, 26 Feb 2015, Axel Bender wrote: @Christian Correct me, if I get sth wrong here, but autocommands are based on events? How would I implement e.g. a ReadonlyChanged with other events? I do not understand the question. Best, Christian -- Es gibt nur ein Elend, und das ist

Re: Capturing setting ro/noro

2015-02-26 Thread Tim Chase
On 2015-02-26 21:07, Christian Brabandt wrote: :set cp which changes a whole bunch of other settings. Does one just fire a single OptionSet, or does one then cascade the firing of more OptionSet events for the ~48 settings it would impact? I would say, it should only trigger once.

Re: Capturing setting ro/noro

2015-02-26 Thread Christian Brabandt
Am 2015-02-26 11:47, schrieb Axel Bender: On Thursday, February 26, 2015 at 9:11:35 AM UTC+1, Axel Bender wrote: I had to dismiss a solution based on CursorHold as it isn't immediate. Sadly there is no ReadonlyChanged event... Where in the sources would I start btw. if I wanted to implement a

Re: Capturing setting ro/noro

2015-02-26 Thread Axel Bender
On Thursday, February 26, 2015 at 9:11:35 AM UTC+1, Axel Bender wrote: I had to dismiss a solution based on CursorHold as it isn't immediate. Sadly there is no ReadonlyChanged event... Where in the sources would I start btw. if I wanted to implement a new event? -- -- You received this

Re: Capturing setting ro/noro

2015-02-26 Thread Axel Bender
I had to dismiss a solution based on CursorHold as it isn't immediate. Sadly there is no ReadonlyChanged event... -- -- 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

Re: Capturing setting ro/noro

2015-02-26 Thread Axel Bender
@Christian Correct me, if I get sth wrong here, but autocommands are based on events? How would I implement e.g. a ReadonlyChanged with other events? -- -- 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

Re: Capturing setting ro/noro

2015-02-25 Thread Ben Fritz
On Wednesday, February 25, 2015 at 3:57:57 AM UTC-6, Axel Bender wrote: Is there a way to capture the setting of readonly? I.e. I'd like to be able to inject a function when the readonly setting is changed. No, you cannot detect when arbitrary options change. You could monitor for an option

Re: Capturing setting ro/noro

2015-02-25 Thread Axel Bender
I'd like to set the editor's background whenever I switch to/read a RO file, or when I set the readonly option. Right now I'm abusing statusline for my needs; it works pretty good but it is also pretty dirty... -- -- You received this message from the vim_use maillist. Do not top-post! Type

Re: Capturing setting ro/noro

2015-02-25 Thread Ben Fritz
On Wednesday, February 25, 2015 at 10:50:38 AM UTC-6, Axel Bender wrote: I'd like to set the editor's background whenever I switch to/read a RO file, or when I set the readonly option. Right now I'm abusing statusline for my needs; it works pretty good but it is also pretty dirty... For

Capturing setting ro/noro

2015-02-25 Thread Axel Bender
Is there a way to capture the setting of readonly? I.e. I'd like to be able to inject a function when the readonly setting is changed. -- -- 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