descriptionnone
repository URLhttps://github.com/tpope/vim-fugitive.git
ownerstefan.naewe+rr@gmail.com
last changeTue, 19 Nov 2024 17:16:44 +0000 (19 12:16 -0500)
last refreshThu, 21 Nov 2024 08:20:57 +0000 (21 09:20 +0100)
content tags
add:
README.markdown

fugitive.vim

Fugitive is the premier Vim plugin for Git. Or maybe it's the premier Git plugin for Vim? Either way, it's "so awesome, it should be illegal". That's why it's called Fugitive.

The crown jewel of Fugitive is :Git (or just :G), which calls any arbitrary Git command. If you know how to use Git at the command line, you know how to use :Git. It's vaguely akin to :!git but with numerous improvements:

Additional commands are provided for higher level operations:

Add %{FugitiveStatusline()} to 'statusline' to get an indicator with the current branch in your statusline.

For more information, see :help fugitive.

Screencasts

Installation

Install using your favorite package manager, or use Vim's built-in package support:

mkdir -p ~/.vim/pack/tpope/start
cd ~/.vim/pack/tpope/start
git clone https://tpope.io/vim/fugitive.git
vim -u NONE -c "helptags fugitive/doc" -c q

FAQ

What happened to the dispatch.vim backed asynchronous :Gpush and :Gfetch?

This behavior was divisive, confusing, and complicated inputting passwords, so it was removed. Use :Git! push to use Fugitive's own asynchronous execution, or retroactively make :Git push asynchronous by pressing CTRL-D.

Why am I getting core.worktree is required when using an external Git dir?

Git generally sets core.worktree for you automatically when necessary, but if you're doing something weird, or using a third-party tool that does something weird, you may need to set it manually:

git config core.worktree "$PWD"

This may be necessary even when simple git commands seem to work fine without it.

So I have a symlink and...

Stop. Just stop. If Git won't deal with your symlink, then Fugitive won't either. Consider using a plugin that resolves symlinks, or even better, using fewer symlinks.

Self-Promotion

Like fugitive.vim? Follow the repository on GitHub and vote for it on vim.org. And if you're feeling especially charitable, follow tpope on Twitter and GitHub.

License

Copyright (c) Tim Pope. Distributed under the same terms as Vim itself. See :help license.

shortlog
39 hours ago Kevin HwangFix tab Gdiffsplit opening empty buffermaster
2024-09-07 Tim PopeUse keepalt for diff maps
2024-09-02 Julio BDisable modelines for status buffers
2024-07-18 Tim PopeUse nvim vim.ui.open as a fallback
2024-07-05 Tim PopeUse callback based workflow for status buffer
2024-07-05 David BriscoeFormat the full body instead of separating title
2024-06-26 Tim PopeClarify dq behavior
2024-06-12 Tim PopeRearrange :Git documentation
2024-05-19 Tim PopeUse rev-parse to get abbrev length for status buffer
2024-05-19 Tim PopeFix :Git difftool without -y
2024-05-19 Tim PopeFix :Git difftool -y
2024-05-17 Tim PopeMake push map available on P
2024-05-17 Tim PopeNormalize path before quoting it
2024-05-17 Tim PopeFilter out bold/underline typesetting in man output
2024-05-15 Tim PopeIgnore missing ssh include files
2024-05-15 Tim PopeSupport ~ in ssh config include
...
tags
2 years ago v3.7 fugitive.vim 3.7
2 years ago v3.6 fugitive.vim 3.6
3 years ago v3.5 fugitive.vim 3.5
3 years ago v3.4 fugitive.vim 3.4
3 years ago v3.3 fugitive.vim 3.3
4 years ago v3.2 fugitive.vim 3.2
5 years ago v3.1 fugitive.vim 3.1
5 years ago v3.0 fugitive.vim 3.0
6 years ago v2.5 fugitive.vim 2.5
6 years ago v2.4 fugitive.vim 2.4
6 years ago v2.3 fugitive.vim 2.3
9 years ago v2.2 fugitive.vim 2.2
10 years ago v2.1 fugitive.vim 2.1
10 years ago v2.0 fugitive.vim 2.0
13 years ago v1.2 fugitive.vim 1.2
14 years ago v1.1 fugitive.vim 1.1
...
heads
39 hours ago master
3 years ago double-status
3 years ago parallel-status
4 years ago difftool
7 years ago blame_message
8 years ago worktree
8 years ago nested/test
11 years ago buffer_path
12 years ago http_github_fi
12 years ago blame_color
13 years ago copied