diff_navigator : Helps navigation in unified diffs
script karma |
Rating 4/5,
Downloaded by 738 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Petr Uzel |
|
script type |
ftplugin |
|
description |
*** IMPORTANT ***: the script is no longer maintained here. It has been taken over by Matěj Cepl and is now maintained at
https://gitlab.com/mcepl/vim-diff_navigator . Please get the script from there.
Simple script that helps navigation in unified diffs (patches).
Together with external utility filterdiff (part of patchutils) it provides DiffAnnotate command that tags all hunks with their number and name of the changed file.
DiffShowHunk command displays annotation of the current hunk (useful when inside a big hunk).
DiffNextFile and DiffPrevFile command can be used to quickly skip to next/previous changed file.
DiffNextHunk and DiffPrevHunk quickly skips to next/previous hunk.
DiffSplitHunk splits the hunk under the cursor, fixing previous hunk header.
DiffDeleteHunk deletes the hunk under the cursor and fixes all hunks to have correct headers. |
|
install details |
git clone https://gitlab.com/mcepl/vim-diff_navigator.git (vim-pathogen [1] is recommended)
Also make sure that filterdiff (should be in patchutils package) program is installed somewhere in your $PATH.
[1] https://github.com/tpope/vim-pathogen |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.188.149.185
|