Friday, December 2, 2022

Re: List of changed lines

On Thu, Dec 1, 2022 at 3:26 PM Salman Halim <salmanhalim@gmail.com> wrote:
>
> Hello,
>
> Is it possible, either natively or through Vim script (I'm happy to write the code, but not sure what to look for), to get a list of the lines that have been changed since a particular moment?
>
> For example, I want a list of the lines I've added, deleted or modified since the last time I saved the file or since the last time I opened the file, even if it's been saved in between, or in the past hour.
>
> Thank you very much,
>
> Salman

Maybe see ":help :DiffOrig"

Best regards,
Tony.

--
--
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/CAJkCKXs0anHBH--S8zpf7Psi7%2B7fiRkNQa_Y6ZRQRstnXC-PEQ%40mail.gmail.com.

No comments: