perline-diff.vim : this line, that line, then diff comes up
| script karma
Downloaded by 280
Comments, bugs, improvements
|You can see the differences between any lines displayed on the vim.
It is handy and simple. Press <F9> on a line in some window, and press <F9> again on another line in same or different window, then horizontally separated two tiny windows come up at the bottom of this page and shows those differences. Selected each lines are differently highlighted on their window. To return back to the original screen, just press <F10>.
You can select a block of lines by pressing <F9> in visual mode or by using SPLDiff command with range. If prefer to see those diff windows at top and/or in vertical, use g:PLDWLType global variable. <F9> and <F10> keys are configurable as well.
If diffchar.vim plugin has been installed, you can see the exact differences on both the perline diff windows.
:[range]SPLDiff - select lines and show those diff windows
:QPLDiff - quit the perline diff windows
<Plug>ShowPerlineDiff (default: <F9>)
<Plug>QuitPerlineDiff (default: <F10>)
g:PLDWLType - layout type of perline diff windows
1 : bottom horizontal (default)
2 : bottom vertical
3 : top horizontal
4 : top vertical
* Fixed to restore the size of existing windows after closing perline diff windows.
* Fixed to show the exact difference with diffchar.vim 5.3 and later.
* If an original window has been in diff mode, temporary clear its diff mode while displaying perline diff windows.
* If the selected lines are moved on the original window, their highlights will also follow those lines.
* Adjust height of perline diff windows to show just as many selected lines as possible including diff filler lines, within the half of vim's height.
Rating scripts is only available on the
script versions (upload new version)
Click on the package to download.
ip used for rating: 220.127.116.11
||Restore the size of existing windows. Show the exact difference with diffchar.vim 5.3 and later.
||Show as many selected and filler lines as possible. Show only the difference between selected lines by clearing diff mode on existing windows.