Vim Unified Diff Save

A plugin for using unified diff in vimdiff

Project README

Deprecated

Vim 8.1.0360 introduce algorithm:{text} to diffopt and natively supports the following algorithms

  • myers (default)
  • minimal
  • patience
  • histogram

So that if you use this plugin to use one of the above algorithm, the plugin is no longer required and use setting like below:

set diffopt& diffopt+=algorithm:histogram,indent-heuristic

See :help diffopt for detail.

vim-unified-diff

Travis CI Version 0.2.1 Support Vim 8.0.0027 or above Support Neovim 0.1.7 or above MIT License Powered by 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

Builtin diff

It will be turn into

Histogram diff

by this plugin.

Inspired by http://qiita.com/takaakikasai/items/3d4f8a4867364a46dfa3 and written in pure vimscript.

INSTALL

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.

Open Source Agenda is not affiliated with "Vim Unified Diff" Project. README Source: lambdalisue/vim-unified-diff
Stars
42
Open Issues
0
Last Commit
4 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating