Review diffs and staged changes side-by-side without switching to a terminal.
Write commit messages directly in Vim and browse your file's Git history.
Stage specific changes and view old versions of files without leaving the editor.
Open the current file on GitHub or GitLab directly from Vim.
vim-fugitive is a plugin for Vim, a terminal-based text editor, that integrates Git version control directly into the editor. Rather than switching to a separate terminal window to run Git commands, this plugin lets you run them from within Vim itself, with the results displayed sensibly inside the editor's interface. The core feature is the :Git command (also shortened to :G), which lets you run any standard Git command you already know. Beyond simply passing commands through, the plugin adds thoughtful behavior on top: quiet commands like git add run without interrupting your workflow, commands that need a text editor (like writing a commit message) open inside your current Vim session rather than launching a separate editor, and output-heavy commands like git log or git diff load into scrollable temporary buffers you can browse. A set of higher-level commands rounds out the feature set. You can view any historical version of a file, compare the working copy against the staged (ready-to-commit) version side by side, read an old version of a file back into the buffer, move or rename files through Git while keeping Vim in sync, and open the current file on platforms like GitHub or GitLab directly from the editor. You would use vim-fugitive if you live in Vim and want to manage Git without leaving the editor. It is especially useful for reviewing diffs, staging specific changes, writing commit messages, and exploring file history, all without context-switching to a terminal. It is written in Vim Script and follows Vim's own license terms.
Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.