sponsor Vim development Vim logo go to HTTPS page Vim Book Ad

spotdiff.vim : A range selectable diffthis to compare partially

 script karma  Rating 4/1, Downloaded by 80    Comments, bugs, improvements  Vim wiki

created by
Rick Howe
 
script type
utility
 
description
This plugin has been developed in order to make diff mode more useful. Vim always shows a diff for whole lines of a window. But this plugin allows to specify the range and then partially make a spot diff. It is also possible to select two blocks of lines in a single window, to see the differences between them within one file.

This plugin provides another :diffthis and :diffoff commands, which are :Diffthis and :Diffoff.

For details and demo samples, please visit the following git repository: https://github.com/rickhowe/spotdiff.vim

Update : 1.1
* :Diffthis hides and highlights other lines than selected with Conceal, instead of showing selected lines with sign feature.
* :Diffthis and :Diffoff try to repair any diff mode mismatch, instead of stopping with error messages.
* The diffopt foldcolumn:{n} option was ignored, but follows it as vim does.
* A temporary new window, which opens when :Diffthis is used twice in a single window, was sometimes too large, but shows as few as those lines.
 
install details
Install 'rickhowe/spotdiff.vim' by using your plugin manager. Or manually unzip and copy all folders in your ~/.vim or ~/vimfiles.
 

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
spotdiff1.1.zip 1.1 2017-01-28 7.4 Rick Howe Enhanced to hide other lines than selected with Conceal, repair any diff mode mismatch, and so on.
spotdiff1.0.zip 1.0 2017-01-06 7.4 Rick Howe Initial upload
ip used for rating: 54.205.60.171

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.
   
SourceForge.net Logo