sponsor Vim development Vim logo Vim Book Ad

spotdiff.vim : A range selectable diffthis to compare partially

 script karma  Rating 27/11, Downloaded by 2646  Comments, bugs, improvements  Vim wiki

created by
Rick Howe
script type
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 :Diffthis, :Diffoff and :Diffupdate commands, which are alternative to vim original :diffthis, :diffoff and :diffupdate.

For details and demo samples, please visit the following git repository: https://github.com/rickhowe/spotdiff.vim
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
spotdiff3.2.zip 3.2 2019-08-29 8.0 Rick Howe Changed to use hl-CursorLine to indicate the selected lines.
spotdiff3.1.zip 3.1 2019-01-09 8.0 Rick Howe Disable a new internal diff (patch-8.1.360) to work correctly.
spotdiff2.2.zip 2.2 2017-12-03 7.4 Rick Howe Added :Diffupdate command.
spotdiff2.1.zip 2.1 2017-11-25 7.4 Rick Howe Enhanced to make the selected lines more visible with an underline.
spotdiff2.0.zip 2.0 2017-11-18 7.4 Rick Howe Enhanced to indicate the selected lines with a '-' in the fold column.
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:

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