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 -- Bram@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 ///
--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/202104011648.131Gm6XB1999673%40masaka.moolenaar.net.
Thursday, April 1, 2021
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment