Philip Rhoades wrote:
> I live in vim and therefore use vimdiff most of the time for my needs
> but I have a use case where I only want to diff on the FIRST field of
> two files ie the files have lines that look like:
>
> [dir|file]name | [D|F] | mtime
>
> and I need to be able to have vimdiff only working on the [dir|file]name
> and ignore the rest of the line - is this possible somehow?
This is currently not possible. And it would be more than a bit of work
to implement. At the same time, it can be very useful to be able to
diff while ignoring some text.
A first idea would be to define a pattern, replace the matched text with
spaces, create the diff, then undo the replacement. Perhaps also
highlight the ignored text. Optionally this would work the other way:
replace the not-matched text with spaces.
--
Latest survey shows that 3 out of 4 people make up 75% of the
world's population.
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///