I want to be able to search only within the
DiffText regions of a file that I'm editing.
Related question: https://stackoverflow.com/questions/2683521/vim-search-in-c-c-code-lines
The accepted answer here seems to work great for say,
Type syntax groups, but any of the Diff groups don't work. I surmise it something to do with the diff groups being nested within other groups.
My specific scenario is that I've removed a bunch of tabs and trailing spaces from a bunch of files. I've diffed the files with the originals and want to make sure that nothing except tabs and trailing spaces are different.
P.S. I don't want to do a global replace of all the tabs because my predecessor used inconsistent indentation and I need to manually check all of it.