How to search only in diff blocks - gvim diff

I am trying to find a line only in "diff areas" (text blocks where there is a difference between files). Is there a way to do this?

+3


source to share


1 answer


You can ask vim to search only to unfold. So add up the common part and search for the diff part:

set diffopt=filler,context:0
set fdo-=search

      



tested and working

+2


source







All Articles