Questions tagged [vim-fugitive]

Git integration for the Vim editor

A wrapper for Git that injects its functionality inside Vim, such as

  • View any blob, tree, commit, or tag in the repository
  • Bring up the output of git status
  • interactive vertical blame split
  • git mv on a file and simultaneously renames the buffer
  • grep exposure to search the work tree (or any arbitrary commit)
  • statusline integration
  • open the current file on GitHub

More at the github repository.

92 questions
3
votes
1 answer

Unable to use Gcommit (Fugitive Plugin) on Vim when signing commits

CONTEXT Since I decided to sign all my commits, whenever I tried running :Gcommit and write a commit message I would get: fugitive: error: failed to sign the data I tried everything that people suggested on [this other question] (gpg failed to sign…
Jonathan Soifer
  • 2,715
  • 6
  • 27
  • 50
3
votes
2 answers

in fugitive.vim show diff between target|merge and common ancestor

I am using fugitive.vim's :Gdiff. I would like to get the diff between the head and the common ancestor and between merge and the common ancestor. I am using instructions from here Show base in fugitive.vim conflict diff, to get the…
3
votes
2 answers

How to edit specific version of file in fugitive

Some content has been moved from a .c file to a .h file in my repository and I want to compare them to ensure that the new header is correct. This is for a Gerrit review and I am assuming there's no simple way to do this using the Gerrit toolchain.…
Stephen Rasku
  • 2,554
  • 7
  • 29
  • 51
3
votes
2 answers

Git commit --verbose in Fugitive

Is there a way to make :Gcommit from Fugitive Vim plugin verbose by default (git commit --verbose)? I've tried the following without luck: command! -nargs=* Gcommit Gcommit --verbose Also tried creating a commit alias in gitconfig, although…
jviotti
  • 17,881
  • 26
  • 89
  • 148
3
votes
5 answers

vim: launch command after load plugins

with vim, I can launch a command when vim is open, example: open vim and create a split vim +sp I use vim-fugitive plugin, is I use vim +Gstatus I get E492: No es una orden del editor: Gstatus maybe because fugitive not are loaded when vim…
JuanPablo
  • 23,792
  • 39
  • 118
  • 164
3
votes
1 answer

Is there a quick way to stage change hunks shown by vim-signify without entering a diff mode?

I'm using vim-signify to see what changes exist in sources managed by git. I'd like to be able to easily stage those hunks, without having to open a separate diff view between the working copy and the index (as provided by fugitive's :Gdiff)…after…
cemerick
  • 5,916
  • 5
  • 30
  • 51
3
votes
1 answer

Unable to use fugitive.vim on gVim on Windows 7

I am using gVim on Windows 7 and I have tried installing fugitive.vim as described here. As per the link , I have extracted fugitive.vim to vim73/plugin folder which is in the runtime path for my gVim. But when I restart the gVim, I get "Not an…
quirkystack
  • 1,387
  • 2
  • 17
  • 42
3
votes
2 answers

Jump to the line which says `modifed...` while using :Gstatus in vim-fugitive

I used :Gstatus and can see the status window. How do I directly jump to the line which say that a file has been modified. # On branch refactor-modeldatasource # Changes not staged for commit: # (use "git add ..." to update what will be…
Akshar Raaj
  • 14,231
  • 7
  • 51
  • 45
3
votes
1 answer

Jump through git diff

I use and love Tim Pope's excellent Fugitive plugin for VIM, I've always wanted the ability to load up a diff of all of the files in the :Glog quickfix and cycles through them to the file in HEAD (or maybe any revision!) individually. Using…
zetavolt
  • 2,989
  • 1
  • 23
  • 33
3
votes
2 answers

Why is fugitive-:Gdiff exploding in colours and not doing anything useful?

I have just installed fugitive and it's working pretty nicely. There appears to be something wrong with :Gdiff though, probably due to an incompatible setting somewhere that I'm hoping you can help me identify. When I run the command, the colours on…
Hubro
  • 56,214
  • 69
  • 228
  • 381
2
votes
1 answer

Show interactive list of files changed by commit in vim-fugitive

I use the fugitive status windows quite a lot when working on commits. It's an easy and interactive way to see what I have changed and I can open any of the files where I have made changes and e.g. diff them. However, after I have committed, I can't…
2
votes
2 answers

How to list all my Github repositories, public and private in the terminal with git or in Vim with Fugitive?

I have a few repositories on my Github account and I am trying to pipe a list of names of all these repos (private and public) to some scripts for automating a few tasks. What I did- Read a lot of QnA on this, but most answers revolve around git…
Subham Burnwal
  • 310
  • 2
  • 17
2
votes
1 answer

Git reporting a merge conflict, but hunks are identical

I'm trying to learn Fugitive with a live project, particularly resolving a merge conflict as I find doing this manually pretty tedious. I don't know if this is a valid question, because I cannot reproduce the effect outside of the repo I'm working…
Xophmeister
  • 8,884
  • 4
  • 44
  • 87
2
votes
1 answer

Get only git diff output in tab

I want to get only output of git diff of whole repository, not just a file, in a tab, Not Split With The Commit Message! In the issues I found a: command GdiffInTab tabedit %|Gdiff But this one opens an split view with commit message, the thing I…
BladeMight
  • 2,670
  • 2
  • 21
  • 35
2
votes
0 answers

vim fugitive how to work on commit message while adding files?

I have been using vim-fugitive which is great but I haven't figured out a good way to work on a commit message while I am adding files. My workflow has been like this... :Gstatus diff the files in a vsplit with dv look through the diff, go to…
Joff
  • 11,247
  • 16
  • 60
  • 103