vim-fugitive Questions

4

Solved

Currently, if I type :Glog I get the list of revisions for the current file. If I type :Glog -- I get the list of commits for all files. What do I need to type to get the list of commits for the cu...
Keikokeil asked 20/9, 2013 at 19:48

4

Solved

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 branc...
Composition asked 4/6, 2014 at 7:41

8

Solved

The command :Gdiff is equivalent to running git diff on that file. What's the equivalent for git diff --staged or git diff --cached?
Prisca asked 14/3, 2013 at 11:13

2

Solved

In fugitive I can get the git status in a new window by :Gstatus and in that window to D on a file to get the diff in a new split. It is also possible to get all versions of a file using :Glog and...
Empurple asked 9/11, 2012 at 8:21

4

Solved

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 GStat...
Playsuit asked 15/9, 2017 at 0:3

5

I really like Fugitive (VIM git wrapper plugin) However I would like to create a script that starts vim and then runs :Gstatus immediately. However when I try vim -c Gstatus I get an error ...
Jacobo asked 4/2, 2013 at 8:8

4

Solved

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 oth...
Tricolor asked 27/3, 2016 at 20:55

2

Solved

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/kun...
Safeconduct asked 26/11, 2020 at 11:26

10

Solved

I know that :Glog will populate the quickfix list with all the versions of the file in the current buffer and that I can hit <enter> on these to see the file at that particular version, but i...
Mobility asked 28/5, 2013 at 22:37

15

Solved

I am using vim with the fugitive extension. It has a :Gdiff command which brings you into vimdiff mode, but what is the right/quick way to close/quit vimdiff mode? I.e., let's say I am editing the...
Casabonne asked 24/4, 2010 at 7:45

3

Solved

Fugitive.vim allows me to run git grep commands; unfortunately, the results are not stored in a quickfix-list, so I need to run :cw after a :Ggrep in order to have an easily parseable result list. ...
Forensic asked 21/2, 2014 at 10:4

4

Solved

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 l...
Sentry asked 1/10, 2012 at 22:44

1

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 nee...
Cripple asked 18/12, 2017 at 15:46

4

Solved

vim-fugitive side-by-side git diff is great for viewing diff of unstaged files. How can I use vim-fugitive to git diff staged files? any git revision?
Allbee asked 12/3, 2013 at 18:42

3

Solved

I know how to run gblame inside a file. I know how to grep a content inside all files in a directory. I'd like to see gblame of particular lines around that one that contains a content. Example: ...
Domicile asked 25/2, 2015 at 16:17

2

Solved

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 ...
Contrition asked 19/7, 2016 at 20:46

1

Solved

I'm look for vim command which will exit from Glog'ed file view back to the normal (original) file. EXAMPLE: Let say I'm viewing a file with vim. After entering :Glog I'm able to browse through ...
Gayle asked 30/4, 2016 at 10:24

2

Solved

How do you do git add . in Fugitive for vim? THe command :Git add . is not doing adding anything
Davisdavison asked 5/3, 2016 at 9:17

2

Solved

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 stat...
Lengthwise asked 5/12, 2013 at 1:15

2

Solved

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...
Excavator asked 26/2, 2015 at 2:15

2

Solved

I am editing files opened split into three windows. I want to commit those into the repository. Is there any commands to do that?
Kerstin asked 7/12, 2014 at 7:5

1

Solved

I've been using Fugitive's Gblame recently but don't quite understand what "reblame" does. Can someone describe a little more clearly what these options do: - reblame at commit ~ reblame at [co...
Nidianidicolous asked 13/8, 2014 at 12:52

2

Solved

I have a huge file where I modified several lines, and saved it. The fugitive knows which lines are modified, and it would be very useful to just jump between them. Is there an existing hotkey for ...
Elurd asked 24/4, 2014 at 8:18

1

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...
Hypno asked 5/11, 2013 at 13:12

2

Solved

I've just discovered fugitive.vim, which is pretty cool. However, I've run into a problem (this is using windows xp, msys git 1.7, fugitive.vim 1.1, and gvim 7.2). Adding files to the index and che...
Pe asked 19/5, 2010 at 5:20

© 2022 - 2024 — McMap. All rights reserved.