# airblade/vim-gitgutter

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/airblade-vim-gitgutter).**

8,506 stars · 295 forks · Vim Script · MIT

## Links

- GitHub: https://github.com/airblade/vim-gitgutter
- awesome-repositories: https://awesome-repositories.com/repository/airblade-vim-gitgutter.md

## Description

This is a Vim extension that provides Git change visualization and hunk management. It displays markers in the sign column to indicate added, modified, or removed lines relative to the Git index, allowing users to visualize diffs and compare buffer versions side-by-side.

The plugin extends the editor's text objects to target specific blocks of modified lines, enabling the use of standard operators on these contiguous hunks. It also provides tools to stage or undo individual blocks of changes directly within the editor.

Additional capabilities include navigation utilities for jumping between modified code blocks and populating the quickfix list with change locations. The plugin can calculate diff statistics for the status line and fold unchanged text to highlight only modified blocks.

## Tags

### Development Tools & Productivity

- [Git Sign Column Indicators](https://awesome-repositories.com/f/development-tools-productivity/neovim-plugins/git-sign-column-indicators.md) — Displays Git add, modify, and delete indicators directly in the editor's sign column.
- [Git Diff Visualizers](https://awesome-repositories.com/f/development-tools-productivity/git-diff-visualizers.md) — Marks added, modified, or removed lines in the margin to track changes relative to the Git index. ([source](https://github.com/airblade/vim-gitgutter#readme))
- [Diff Region Text Objects](https://awesome-repositories.com/f/development-tools-productivity/text-object-selection/custom-text-object-definitions/diff-region-text-objects.md) — Defines custom text objects that target contiguous blocks of modified lines for editor operations.
- [Vim Plugins](https://awesome-repositories.com/f/development-tools-productivity/vim-plugins.md) — Extends the Vim editor to provide Git change visualization and hunk management.
- [Text Object Extensions](https://awesome-repositories.com/f/development-tools-productivity/vim-plugins/text-object-extensions.md) — Defines new text objects for the Vim editor specifically to target blocks of modified lines.
- [Hunk-Based Change Management](https://awesome-repositories.com/f/development-tools-productivity/window-managers/buffer-managers/diff-layering/hunk-navigation-and-manipulation/hunk-based-change-management.md) — Treats individual diff hunks as atomic units for staging, reverting, and navigation.
- [Change Review Interfaces](https://awesome-repositories.com/f/development-tools-productivity/code-quality-analysis/static-analysis-engines/static-analysis-tools/code-analysis-tools/local-change-reviewers/change-review-interfaces.md) — Allows for identifying and analyzing modifications by comparing the current buffer against previous versions.
- [Revision Comparison](https://awesome-repositories.com/f/development-tools-productivity/git-diff-viewers/revision-comparison.md) — Compares the current buffer against the Git index or a specific revision to identify changes. ([source](https://github.com/airblade/vim-gitgutter#readme))
- [Hunk Navigation](https://awesome-repositories.com/f/development-tools-productivity/hunk-navigation.md) — Provides utilities for quickly jumping between modified code blocks and listing change locations.
- [Quickfix List Population](https://awesome-repositories.com/f/development-tools-productivity/quickfix-list-navigation/quickfix-list-population.md) — Transforms raw diff output into a list of jump targets within the editor's native quickfix list.
- [Side-by-Side Diff Viewers](https://awesome-repositories.com/f/development-tools-productivity/side-by-side-diff-viewers.md) — Provides a way to launch external binaries for side-by-side diff comparison of file versions.

### Software Engineering & Architecture

- [Buffer-Based Hunk Staging](https://awesome-repositories.com/f/software-engineering-architecture/project-management-governance/repository-maintenance/repository-metadata/commit-histories/snapshot-committing-utilities/staging-buffers/index-based-staging/buffer-based-hunk-staging.md) — Provides tools to stage or undo individual blocks of changes directly within the editor buffer to refine commits. ([source](https://github.com/airblade/vim-gitgutter/blob/main/README.mkd))
- [Code Folding](https://awesome-repositories.com/f/software-engineering-architecture/code-edit-formats/structural-folding/code-folding.md) — Hides unchanged lines to display only modified blocks using editor folding capabilities. ([source](https://github.com/airblade/vim-gitgutter#readme))

### Part of an Awesome List

- [Browser Extensions and Plugins](https://awesome-repositories.com/f/awesome-lists/devtools/browser-extensions-and-plugins.md) — Vim plugin for showing Git diffs in the gutter.
