sponsor Vim development Vim logo Vim Book Ad

BlockDiff : Difference between two blocks (functions etc...)

 script karma  Rating 45/25, Downloaded by 2211  Comments, bugs, improvements  Vim wiki

created by
Timo Teifel
 
script type
utility
 
description
This script provides a simple and fast way to see the difference between two blocks of text.
This might be similar source code functions, definitions, etc.

Just select the first portion, goto Menu "Tools->BlockDiff->This is block 1".
Select the second portion, goto Menu "Tools->BlockDiff->This is block 2, start diff".
The script will open a new tab, split it and diff the two portions.

If you prefer the mouse context-menu, a key mapping or ex commands, they all are prepared in the file, just remove the comment and/or change the mappings.

Currently only for Vim 7.* with GUI (and tabs).
 
install details
Just drop into your vim/plugins directory
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
blockdiff.vim 1.1 2007-10-23 7.0 Timo Teifel Added:
- Commands :BlockDiff1 and :BlockDiff2
- Inclusion guard
- Moved Menu to Tools, right below "Diff"
Thanks to Ingo Karkat for these improvements!
blockdiff.vim 1.0 2007-10-22 7.0 Timo Teifel Initial upload
ip used for rating: 142.132.191.50

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github