diff_movement : Movement over diff hunks with ]] etc.
| script karma
Downloaded by 456
Comments, bugs, improvements
script versions (upload new version)
This filetype plugin provides movement commands and text objects for diff hunks.
Supports traditional, context and unified diff formats.
- textobj-gitgutter (vimscript #4458) provides an inner-hunk text object for
hunks provided by the vim-gitgutter plugin. It also requires textobj-user.
Move around diff hunks:
]] Go to [count] next start of a diff hunk.
][ Go to [count] next end of a diff hunk.
[[ Go to [count] previous start of a diff hunk.
 Go to [count] previous end of a diff hunk.
ih "inner hunk" text object, select [count] hunk contents.
ah "a hunk" text object, select [count] hunks, including
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).
Click on the package to download.
ip used for rating: 184.108.40.206