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: 11 days ago
JSON representation
Fork of git-time-lapse: Perforce-style for vim/neovim
- Host: GitHub
- URL: https://github.com/junkblocker/git-time-lapse
- Owner: junkblocker
- Created: 2014-11-20T19:28:42.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-08-26T03:58:54.000Z (almost 3 years ago)
- Last Synced: 2025-06-10T10:52:21.309Z (23 days ago)
- Topics: changelog, diff, git, history, log, navigation, neovim, nvim, p4, perforce, plugin, vim, viml
- Language: Vim Script
- Homepage:
- Size: 24.4 KB
- Stars: 35
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
[](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.