I agree, this would be very helpful.

The solution I see for now is to create our own command for starting diff mode 
and adding additional setup to it afterwards.

On Saturday, November 8, 2014 at 8:55:36 AM UTC, Enno wrote:
> In the Vim documentation, diff.txt says
> 
> ==
> In your .vimrc file you could do something special when Vim was started in
> diff mode.  You could use a construct like this: 
> 
>       if &diff
>          setup for diff mode
>       else
>          setup for non-diff mode
>       endif
> 
> While already in Vim you can start diff mode in three ways...
> ==
> 
> Therefore the above check in .vimrc is unsufficient to capture the three 
> other ways to enter diff mode in Vim. All of these set the options like for 
> "vimdiff".
> How about an autocmd for this event when the options like for "vimdiff" are 
> set?

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