Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add fugitive.vim #24

Closed
croaky opened this Issue · 1 comment

2 participants

Dan Croak Mike Burns
Dan Croak
Admin

https://github.com/tpope/vim-fugitive

The :Gblame command is pretty great.

Mike Burns
Admin

I like Fugitive, in theory (never actually made use of it), but here's how I've been doing git blame from within vim:

vmap <Leader>g :<C-U>!git blame <C-R>=expand("%:p") <CR> \| sed -n <C-R>=line("'<") <CR>,<C-R>=line("'>") <CR>p <CR>

With that, select the lines you want blamed, and hit <leader>g .

(Credit goes to Tammer, who supplied to svn variant.)

Dan Croak croaky referenced this issue from a commit
Dan Croak croaky [#24] Add fugitive.vim
Features include:

* Gblame for interactive vertical split with git blame output.
* Ggrep to search the work tree (or any arbitrary commit) with git grep,
  skipping over that which is not tracked in the repository.
* :Glog loads all previous revisions of a file into the quickfix list so
  you can iterate over them and watch the file evolve.
* :Gbrowse to open the current file on GitHub, with optional line range
  (try it in visual mode).
ee4901f
Dan Croak croaky referenced this issue from a commit
Dan Croak croaky [#24] Add fugitive.vim
Features include:

* Gblame for interactive vertical split with git blame output.
* Ggrep to search the work tree (or any arbitrary commit) with git grep,
  skipping over that which is not tracked in the repository.
* :Glog loads all previous revisions of a file into the quickfix list so
  you can iterate over them and watch the file evolve.
* :Gbrowse to open the current file on GitHub, with optional line range
  (try it in visual mode).
1593c9e
Dan Croak croaky closed this
Alex Godin alexgodin referenced this issue from a commit in alexgodin/dotfiles
Dan Croak croaky [#24] Add fugitive.vim
Features include:

* Gblame for interactive vertical split with git blame output.
* Ggrep to search the work tree (or any arbitrary commit) with git grep,
  skipping over that which is not tracked in the repository.
* :Glog loads all previous revisions of a file into the quickfix list so
  you can iterate over them and watch the file evolve.
* :Gbrowse to open the current file on GitHub, with optional line range
  (try it in visual mode).
3bd6a04
Greg Lazarev gylaz referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
Dan Croak croaky referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
Alex Kroman alexkroman referenced this issue from a commit in alexkroman/dotfiles-thoughtbot
Dan Croak croaky [#24] Add fugitive.vim
Features include:

* Gblame for interactive vertical split with git blame output.
* Ggrep to search the work tree (or any arbitrary commit) with git grep,
  skipping over that which is not tracked in the repository.
* :Glog loads all previous revisions of a file into the quickfix list so
  you can iterate over them and watch the file evolve.
* :Gbrowse to open the current file on GitHub, with optional line range
  (try it in visual mode).
ae13c65
Greg Lazarev gylaz referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
Steve Houser shouser referenced this issue from a commit in shaithus/dotfiles
Dan Croak croaky [#24] Add fugitive.vim
Features include:

* Gblame for interactive vertical split with git blame output.
* Ggrep to search the work tree (or any arbitrary commit) with git grep,
  skipping over that which is not tracked in the repository.
* :Glog loads all previous revisions of a file into the quickfix list so
  you can iterate over them and watch the file evolve.
* :Gbrowse to open the current file on GitHub, with optional line range
  (try it in visual mode).
4dd9c5b
Steve Houser shouser referenced this issue from a commit in shaithus/dotfiles
Dan Croak croaky [#24] Add fugitive.vim
Features include:

* Gblame for interactive vertical split with git blame output.
* Ggrep to search the work tree (or any arbitrary commit) with git grep,
  skipping over that which is not tracked in the repository.
* :Glog loads all previous revisions of a file into the quickfix list so
  you can iterate over them and watch the file evolve.
* :Gbrowse to open the current file on GitHub, with optional line range
  (try it in visual mode).
b0f29b0
Geoff Harcourt geoffharcourt referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
Mason Fischer masonforest referenced this issue from a commit in masonforest/dotfiles
Dan Croak croaky [#24] Add fugitive.vim
Features include:

* Gblame for interactive vertical split with git blame output.
* Ggrep to search the work tree (or any arbitrary commit) with git grep,
  skipping over that which is not tracked in the repository.
* :Glog loads all previous revisions of a file into the quickfix list so
  you can iterate over them and watch the file evolve.
* :Gbrowse to open the current file on GitHub, with optional line range
  (try it in visual mode).
5215d6b
Greg Lazarev gylaz referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
Glenn Hoppe ghoppe referenced this issue from a commit in ghoppe/dotfiles
Dan Croak croaky [#24] Add fugitive.vim
Features include:

* Gblame for interactive vertical split with git blame output.
* Ggrep to search the work tree (or any arbitrary commit) with git grep,
  skipping over that which is not tracked in the repository.
* :Glog loads all previous revisions of a file into the quickfix list so
  you can iterate over them and watch the file evolve.
* :Gbrowse to open the current file on GitHub, with optional line range
  (try it in visual mode).
f32f6c9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.