Skip to content

lambdalisue/vim-unified-diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A plugin for using unified diff in vimdiff

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages