Ⅰ. 插件描述
A Vim plugin to reverse the order commits are displayed during a Git interactive rebase.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'salcode/vim-interactive-rebase-reverse'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'salcode/vim-interactive-rebase-reverse'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'salcode/vim-interactive-rebase-reverse'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/salcode/vim-interactive-rebase-reverse
Ⅳ. 文档说明
# Interactive Rebase Reverse Vim
A Vim plugin to reverse the order commits are displayed during a Git interactive rebase.
This plugin is based on my difficultly with mentally shifting fromgit log (where the most recent commit appears at the top)
to git rebase --interactive (where the most recent commit appears at the bottom).
For more information, see my post on why the Git Interactive Rebase Order is Wrong.
Installation
Install using your favorite plugin manager.
vim-plug
- Add
Plug 'salcode/vim-interactive-rebase-reverse'to .vimrc - Run
:PlugInstall
Screenshots
Default Interactive Git Rebase Order
For git log (on the left), the newest commit is on the top but for git rebase --interactive (on the right), the newest commit is on the bottom.

Interactive Git Rebase Order with Plugin
The newest commit is on the top for both git log and git rebase --interactive because this plugin modifies the order for the interactive rebase.
