Re: vimdiff exit when files are identical?

2018-05-30 Thread Gary Johnson
On 2018-05-30, M Kelly wrote: > > Another way would be to check the fold regions. > > Any pointer/info/tip on how to determine the non-fold region is empty ? I think this will do it. if foldclosedend(1) == line("$") " Entire buffer is a closed fold endif See :help

Re: vimdiff exit when files are identical?

2018-05-30 Thread M Kelly
> Another way would be to check the fold regions. Any pointer/info/tip on how to determine the non-fold region is empty ? thx, mark -- -- 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: vimdiff exit when files are identical?

2018-05-29 Thread Bram Moolenaar
Tim Chase wrote: > On 2018-05-28 18:11, M Kelly wrote: > > Is there a variable for how many diffs are present after starting > > vimdiff ? I'd like to exit immediately with status of 0 if there > > are no differences between the files I pass into vimdiff. > > Not that I know of off the top of

Re: vimdiff exit when files are identical?

2018-05-28 Thread Tim Chase
On 2018-05-28 18:11, M Kelly wrote: > Is there a variable for how many diffs are present after starting > vimdiff ? I'd like to exit immediately with status of 0 if there > are no differences between the files I pass into vimdiff. Not that I know of off the top of my head (though if there is, I'd

vimdiff exit when files are identical?

2018-05-28 Thread M Kelly
Hi, Is there a variable for how many diffs are present after starting vimdiff ? I'd like to exit immediately with status of 0 if there are no differences between the files I pass into vimdiff. thx for any suggestions, -mark -- -- You received this message from the "vim_use" maillist. Do not