sponsor Vim development Vim logo Vim Book Ad

diffunitsyntax : Highlight word or character based diff units in diff format

 script karma  Rating 17/9, Downloaded by 1315  Comments, bugs, improvements  Vim wiki

created by
Rick Howe
 
script type
syntax
 
description
This plugin finds and highlights word or character based changed/added/deleted diff units in a diff format, to make it possible to see the actual differences within a line. This plugin not only works as an additional vim syntax for diff format but also applies the intra-line diff unit highlighting on some popular git-related plugins.

For details and demo samples, please visit the following git repository: https://github.com/rickhowe/diffunitsyntax.
 
install details
Install 'rickhowe/diffunitsyntax' 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
diffunitsyntax3.2.zip 3.2 2026-03-17 9.0 Rick Howe Fixed to ignore a warning message in diff format.
diffunitsyntax3.1.zip 3.1 2025-07-15 9.0 Rick Howe Improved to follow "linematch" and compare between most similar lines if specified in the diffopt option (available on nvim 0.9.0 and later)
diffunitsyntax3.0.zip 3.0 2024-12-01 9.0 Rick Howe Made it possible to apply diff unit highlighting on several git-related plugins
diffunitsyntax1.0.zip 1.0 2024-09-07 9.0 Rick Howe Initial upload
ip used for rating: 216.73.216.168

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github