diffwindow_movement : Movement over changes in a diff window.
| script karma
Downloaded by 535
Comments, bugs, improvements
script versions (upload new version)
This plugin provides movement commands and text objects for windows in diff
]C Go to [count] next end of a change.
[C Go to [count] previous end of a change.
These complement the built-in ]c [c commands.
ic "inner change" text object; in a diff window, select
id "inner difference" text object; difference is more
fine-granular than diff changes; in a diff window,
select a range of lines that have the same
This script is packaged as a vimball. If you have the "gunzip" decompressor
in your PATH, simply edit the *.vmb.gz package in Vim; otherwise, decompress
the archive first, e.g. using WinZip. Inside Vim, install by sourcing the
vimball or via the :UseVimball command.
To uninstall, use the :RmVimball command.
- Requires Vim 7.0 or higher.
- Requires the CountJump plugin (vimscript #3130), version 1.50 or higher.
For a permanent configuration, put the following commands into your vimrc:
To change the default motion mapping, use:
let g:diffwindow_movement_EndMapping = 'C'
To also change the [ / ] prefix to something else, follow the instructions for
To change the default text object mappings, use:
let g:diffwindow_movement_ChangeTextObject = 'c'
let g:diffwindow_movement_DifferenceTextObject = 'd'
To also change the i prefix to something else, follow the instructions for
Click on the package to download.
ip used for rating: 126.96.36.199