diffchar.vim : Highlight the exact differences, based on characters and words
| script karma
Downloaded by 11467
Comments, bugs, improvements
script versions (upload new version)
|This plugin has been developed in order to make diff mode more useful. Vim highlights all the text in between the first and last different characters on a changed line. But this plugin will find the exact differences between them, character by character - so called DiffChar.
For example, in diff mode: ( [DiffText], <DiffAdd> )
(window A) The [quick brown fox jumps over the lazy] dog.
(window B) The [lazy fox jumps over the quick brown] dog.
this plugin will exactly show the changed and added units:
(window A) The [quick] <brown >fox jumps over the [lazy] dog.
(window B) The [lazy] fox jumps over the [quick] <brown >dog.
For details and demo samples, please visit the following git repository: https://github.com/rickhowe/diffchar.vim
|Install 'rickhowe/diffchar.vim' by using your plugin manager. Or manually unzip and copy all folders in your ~/.vim or ~/vimfiles.|
Click on the package to download.
ip used for rating: 220.127.116.11
||Improved to follow the 'wincolor' option. Fixed to work on some color scheme.
||Fixed the error on 3 or more diff mode windows. Fixed the issue upon scrolling on patch-9.0.0913. Made it faster in a file with many lines folded.
||Enhanced g:DiffUnit to use favorite highlight groups and g:DiffColors to use unit delimiters and custom pattern.
||Enhanced to follow "indent-heuristic" diffopt option to make diff units easier to read. Implemented some functions in Vim9 script to make them 10 times faster.
||Updated to check a new WinClosed event to appropriately reset/repair the highlighted diff units.
||Improved to make DiffChar highlights draw faster.