GoDiff : Quick Inline Colored Diff
script karma |
Rating 42/12,
Downloaded by 1428 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Rolf Asmund |
|
script type |
utility |
|
description |
A plug-in to quickly compare two sections of text with colors.
checkout the wiki here with screenshots:
http://vim.wikia.com/wiki/Script:5350
First copy text-1 (e.g. '3yy' to copy 3 lines)
Then, either
visually select text-2 (e.g. 'V2j' to visually select 3 lines)
Now press 'gd' to compare text-1 and text-2
Or
give a count for number of lines to diff followed by gd (e.g. '3gd')
Finally press 'gd' again to restore colors
Registers can also be used. Try '"a3yy' or '3"ayy' to copy 3 lines to register 'a'
Then '"a3gd' or '3"agd' on text to compare with.
For single line compare, simply press 'yy' on text-1 and 'gd' on text-2
|
|
install details |
Source this file
or
Copy its content into your .vimrc
or
If using pathogen, copy this file into .vim/bundle/godiff/plugin/
or
Copy it to your .vim/plugin directory to automatically source it when vim
starts
or
Copy it to your .vim/plugins directory (or any other directory) and source
it explicitly from your .vimrc |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.97.9.175
|