On Mi, 12 Sep 2018, Gary Johnson wrote:

> When I diff a syntax-highlighted buffer, the diff highlighting often
> conflicts with the syntax highlighting so that some text has the
> same foreground and background colors and becomes impossible to
> read.
> 
> I have worked around this problem with the following autocommand.
> 
>     au FilterWritePost * if &diff | setlocal syn=OFF | endif
> 
> With the new internal diff, this doesn't seem to be working anymore.
> That makes sense since the internal diff doesn't need to write any
> files, but now we don't seem to have a hook for changing settings
> when diff is enabled.
> 
> What would be nicest is a pair of hooks (autocommand events) that
> would be triggered when a buffer entered and left diff mode.
> 
> Any thoughts on this?

Does the OptionSet command work? Hm, it might actually not, since it is 
not triggered on startup and I think some of the diff options do only 
flip some internal variables bypassing the set option measure...

Best,
Christian
-- 
Stilblüten aus Schreiben von Versicherungsnehmern:
Ich habe mir den rechten Arm gebrochen, meine Braut hat sich den Fuß
verstaucht - ich hoffe, Ihnen damit gedient zu haben.

-- 
-- 
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.

Raspunde prin e-mail lui