On Wednesday, October 10, 2018 at 3:23:16 AM UTC-4, h_east wrote: > Hi, > > I think Vim already has what you want to do. > See the following document. > :h diffthis > > Example: > - Start Vim without specifying a file name. > $ vim > - Edit the buffer appropriately. Here we set numbers on each line. > :call setline(1, range(0,9)) > - Open new buffer in split vertically > :vnew > - Edit the buffer appropriately. > :call setline(1, range(3,6)) > - Highlight difference between two buffers. > :windo diffthis > > > -- > Best regards, > Hirohito Higashi (h_east)
I don't think that really does what this does. To clarify, my option is only significant when more than two diff buffers are open. Are you sure you're understanding what it does? Download https://flarn2006.dyndns.org/files/difftest.zip and extract it somewhere, then run "vim -O difftest?.txt". Do ":windo diffthis", and you'll see that the same two lines are highlighted in each buffer, because each of those lines differs in at least one of them. Now let's say you only want to see what lines differ in the first one. Type ":set diffbuf=1" and you'll see that now, in each buffer (except the first), only the lines that are different in the first buffer are highlighted. If a line only differs in some other buffer, it won't care. It's like only having diff turned on for two of the buffers, except you can see the comparison with the master buffer on all of them at once. -- -- 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.
