All Projects → lambdalisue → vim-unified-diff

lambdalisue / vim-unified-diff

Licence: MIT license
A plugin for using unified diff in vimdiff

Programming Languages

Vim Script
2826 projects

Projects that are alternatives of or similar to vim-unified-diff

Diff2html
Pretty diff to html javascript library (diff2html)
Stars: ✭ 1,867 (+4345.24%)
Mutual labels:  unified-diffs
diff-parser
A parser for unified diffs
Stars: ✭ 22 (-47.62%)
Mutual labels:  unified-diffs

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].