Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to search only in diff blocks - gvim diff

I'm trying to search a string only in "diff areas" (text blocks where there is a difference between the files).Is there a way to do this?

like image 583
Dinushan Avatar asked Apr 21 '15 06:04

Dinushan


1 Answers

You can ask vim to search only in unfold. So fold common part and search on diff part:

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

tested and it's work

like image 61
Ôrel Avatar answered Sep 30 '22 17:09

Ôrel