https://github.com/lambdalisue/vim-unified-diff
A plugin for using unified diff in vimdiff
https://github.com/lambdalisue/vim-unified-diff
git unified-diffs vim
Last synced: about 2 months ago
JSON representation
A plugin for using unified diff in vimdiff
- Host: GitHub
- URL: https://github.com/lambdalisue/vim-unified-diff
- Owner: lambdalisue
- License: mit
- Created: 2015-03-25T17:36:56.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-06-08T05:31:10.000Z (about 6 years ago)
- Last Synced: 2025-03-30T16:46:28.205Z (3 months ago)
- Topics: git, unified-diffs, vim
- Language: Vim script
- Homepage:
- Size: 136 KB
- Stars: 42
- Watchers: 7
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Deprecated
[Vim 8.1.0360](https://github.com/vim/vim/commit/e828b7621cf9065a3582be0c4dd1e0e846e335bf) introduce `algorithm:{text}` to `diffopt` and natively supports the following algorithms
- myers (default)
- minimal
- patience
- histogramSo that if you use this plugin to use one of the above algorithm, the plugin is no longer required and use setting like below:
```vim
set diffopt& diffopt+=algorithm:histogram,indent-heuristic
```See `:help diffopt` for detail.
# vim-unified-diff
[](https://travis-ci.org/lambdalisue/vim-unified-diff)



[](LICENSE)
[](https://github.com/vim-jp/vital.vim)This plugin is a plugin to use an external diff program which only support
unified-diff in `vimdiff`.In default, it uses `git diff --histogram` so that installing this plugin
automatically improve your `vimdiff` quality.For example

It will be turn into

by this plugin.
Inspired by http://qiita.com/takaakikasai/items/3d4f8a4867364a46dfa3 and written in pure vimscript.
## INSTALL
```vim
NeoBundle 'lambdalisue/vim-unified-diff'
Plug 'lambdalisue/vim-unified-diff'
```## USAGE
Once users install this plugin, it automatically configures `diffexpr`.
To disable it, assign 0 to `g:unified_diff_enabled` variable.