Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/junkblocker/git-time-lapse

Fork of git-time-lapse: Perforce-style for vim/neovim
https://github.com/junkblocker/git-time-lapse

changelog diff git history log navigation neovim nvim p4 perforce plugin vim viml

Last synced: 3 months ago
JSON representation

Fork of git-time-lapse: Perforce-style for vim/neovim

Awesome Lists containing this project

README

        

# [git-time-lapse](https://github.com/junkblocker/git-time-lapse)

Fork of [git-time-lapse: Perforce-style](http://vim.sourceforge.net/scripts/script.php?script_id=3849) for vim/neovim

## Description

You're editing a file which is in a git repository. Press a key which
opens a new tab which shows how that commit changed that file in vim\'s
diff mode (:help diff), with a window at the bottom showing the commit
message. Left and right arrows move through the history. Shift-left and
shift-right go all the way to the end. Return on a line goes back to the
last commit that touched that line (using git blame).

Close the tab when you're bored with it (`:tabclose` or `:windo bd`) and carry
on vimming as usual.

You can open as many time-lapse tabs on different files in one vim
session as you want.

Inspired by the "time lapse view" in the Perforce gui.

## Demo

[![asciicast](https://asciinema.org/a/296792.svg)](https://asciinema.org/a/296792)

## Use

Map a key in your .vimrc, e.g.:

``` {.vim}
nmap gt (git-time-lapse)
```

or use the command:

``` {.vim}
:GitTimeLapse
```

to run it.