Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add fugitive.vim #24

Closed
croaky opened this Issue · 1 comment

2 participants

@croaky
Owner

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

The :Gblame command is pretty great.

@mike-burns
Owner

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.)

@croaky croaky referenced this issue from a commit
@croaky 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
@croaky croaky referenced this issue from a commit
@croaky 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
@croaky croaky closed this
@alexgodin alexgodin referenced this issue from a commit in alexgodin/dotfiles
@croaky 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
@gylaz gylaz referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@croaky croaky referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@alexkroman alexkroman referenced this issue from a commit in alexkroman/dotfiles-thoughtbot
@croaky 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
@gylaz gylaz referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@shouser shouser referenced this issue from a commit in shaithus/dotfiles
@croaky 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
@shouser shouser referenced this issue from a commit in shaithus/dotfiles
@croaky 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
@geoffharcourt geoffharcourt referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@masonforest masonforest referenced this issue from a commit in masonforest/dotfiles
@croaky 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
@gylaz gylaz referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@ghoppe ghoppe referenced this issue from a commit in ghoppe/dotfiles
@croaky 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.