I have two buffers open in vim. I want to compare a subroutine that's present in both buffers for differences. I don't care about the rest of the two files, they're very different. I only care about this subroutine. Is there an easy way to diff just this part of the code? I could go into Visual mode, yank the subroutine of buffer1, create a new file in my temp directory called sub_buffer1.txt, Put the code, save it, then switch to buffer2, go to visual mode, yank that buffer's subroutine code, create a new file in my temp directory called sub_buffer2.txt, Put that code, save it, exit Vim, then run vimdiff on sub_buffer1.txt and sub_buffer2.txt. Is there an easier way?
There is a plug-in you can download from the Vim site called LineDiff that does exactly this.
--
--
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+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/CAOaJ26QERp1B1epFGwR-4_RouL4W9EfDTg8z9JwGSY-3vUNXWQ%40mail.gmail.com.
I wrote back a proper response, saying to use the LineDiff plugin. I didn't send that unsubscribe thing.
--
--
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+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/D2627F59-58D9-4932-9920-70010CB1F833%40gmail.com.