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
8
votes
2 answers

Vim airline branch not showing

I've installed bling/vim-airline hoping I could have that cool branch name in my status bar. I followed the instructions on airline's repo and installed tpope/vim-fugitive. But after downloading, installing, modifying and restarting vim, I just…
user1494994
8
votes
4 answers

Show base in fugitive.vim conflict diff

By default if you use fugitive.vim's :Gdiff on a file buffer which is in conflict with git, you will get a three way diff showing HEAD, the working copy (with conflict markers), and the merge. I like to have git config merge.conflictstyle diff3 set,…
davetapley
  • 17,000
  • 12
  • 60
  • 86
7
votes
2 answers

Is there a VIM Git timeline?

So far, I am trying to understand how to use :Glog in combination with :Gdiff, to create a nice overview like the git-time-machine plugin for the Atom editor: The overview exists of 3 windows On the left: the current file in the working copy. On…
Sem
  • 4,477
  • 4
  • 33
  • 52
6
votes
2 answers

Vim start-up extremely slow under Cygwin when fugitive.vim plugin is installed

I've just started running Vim under cygwin via puttycyg. I find this much better than gVim under windows ;) Anyway, the fugitive.vim plugin causes Vim to take 15-20 seconds to startup. After Vim has started, everything seems normal. I can use…
asgeo1
  • 9,028
  • 6
  • 63
  • 85
6
votes
1 answer

Vim fugitive with neovim terminal emulator

I recently switched from vim to neovim, installing the vim-fugitive plugin. Before, running :Git rebase -i in vim bought up the interactive rebase window in a vim window which I could edit as I needed to, :x out of the window and the rebase would be…
dbatten
  • 437
  • 5
  • 18
6
votes
2 answers

Gstatus changed behaviour in vim-fugitive

I've been using vim with the excellent fugitive plugin for a few months now. But today, for reasons that I can't work out, the :Gstatus command has changed behaviour. It still opens up a "git status"-like screen, which does respond to "R" to refresh…
Phantomwhale
  • 1,789
  • 1
  • 16
  • 30
5
votes
4 answers

How to stage all modified and new files with vim-fugitive

I know that you can use GWrite to stage current file. You can also use GStatus and - to stage the file you are selecting. Is there a way to GWrite all the files or do git add . without using GStatus ?
CodeCrack
  • 5,253
  • 11
  • 44
  • 72
5
votes
4 answers

How to omit very long lines from `git grep`?

I'm searching through my repository (with vim-fugitive's :Ggrep), I have different .js files - the minified ones and the regular ones. I would like to omit from git grep the minified files (in other words - the very long lines that match the query).…
valk
  • 9,363
  • 12
  • 59
  • 79
5
votes
4 answers

Vim: Show current git branch in lightline status line without fugitive

I am using lightline.vim and I would like to show the current git branch. At the moment, I am doing so using vim-fugitive, however, I do not use this plugin at all, except for showing the git branch in the status line. My question is: Is there a way…
Robert Audi
  • 8,019
  • 9
  • 45
  • 67
4
votes
2 answers

How to use vim-fugitive with a git bare repository?

Environment Setup I use a git bare repository to version my config files. I can use same commands as if I were using a normal git repository just have to include some flags: git --git-dir=/home/kunzaatko/.cfg/ --work-tree=/home/kunzaatko/…
kunzaatko
  • 51
  • 4
4
votes
2 answers

Vim 8.1.0037 update breaks multiple plugins

I have updated my vim to 8.1.0037 (vim --version showed compiled 13th June), and when I opened it today multiple plugins are broken. on a restart and reinstall all these plugins, they are still broken. Any direction? it seems to me that the update…
stucash
  • 1,078
  • 1
  • 12
  • 23
4
votes
1 answer

vim-fugitive doesn't show whitespace changes

I'm using vim-fugitive's :Gdiff for commits, but it doesn't show whitespace changes, so I can't commit, for example, indentation changes. I don't have any global git configs like core.whitespace, and if I run git diff in the shell I see whitespace…
sinan
  • 6,809
  • 6
  • 38
  • 67
4
votes
2 answers

Why does only the centerwindow split for :Gstatus?

After looking at the great vimcast-series about fugitive I have tried to use it for a while. But I have some strangeness going on. So here is one question: When I have a merge conflict and open the file I get the…
UlfR
  • 4,175
  • 29
  • 45
4
votes
1 answer

Leave Diff view with Fugitive

With vim-fugitive, is there an easy way to "unsplit" and :Gedit (return to the current object in the working tree)? E.g. when in Gcommit/Gstatus buffers, you would press D to enter side-by-side diff. Now, pressing ZZ would just leave me with a…
sehe
  • 374,641
  • 47
  • 450
  • 633
3
votes
2 answers

Fugitive commands unavailable after opening .vimrc to edit

My system is an OS X 10.6 with MacVim 7.3 (GUI) and Vim 7.2 (on iTerm). On MacVim, Fugitive does not work at all. On Vim, it is a little bit different. I have set a mapping to open the .vimrc file as follows: nmap ev :e…
freitass
  • 6,542
  • 5
  • 40
  • 44