diffchar.vim : Highlight the exact differences, based on characters and words
script karma |
Rating 326/118,
Downloaded by 12394 |
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 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 details |
Install 'rickhowe/diffchar.vim' by using your plugin manager. Or manually unzip and copy all folders in your ~/.vim or ~/vimfiles. |
|
script versions (upload new version)
Click on the package to download.
diffchar9.7.zip |
9.7 |
2024-02-14 |
8.2 |
Rick Howe |
Implemented to use a new builtin diff() function to compare diff units and make it faster in vim. |
diffchar9.61.zip |
9.61 |
2023-07-16 |
8.2 |
Rick Howe |
Changed not to incrementally check the diff lines upon scrolling or searching. Fixed not to use hl-DiffText if [{hlg}] is specified in the g:DiffColors option. |
diffchar8.91.zip |
8.91 |
2021-12-07 |
8.0 |
Rick Howe |
Updated to check a new WinClosed event to appropriately reset/repair the highlighted diff units. |
diffchar7.6.zip |
7.6 |
2018-07-22 |
7.0 |
Rick Howe |
Improved to make DiffChar highlights draw faster. |
diffchar.vim |
1.0 |
2014-05-02 |
7.0 |
Rick Howe |
Initial upload |
ip used for rating: 142.132.191.50
|