vim-unite-vcs


Ⅰ. 插件描述

unite sources and actions for any vcs

Ⅱ. 基本信息

创建日期:  2012-07-15
使用用户:  3
Github星:  3
插件作者:  hrsh7th

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'hrsh7th/vim-unite-vcs'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'hrsh7th/vim-unite-vcs'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'hrsh7th/vim-unite-vcs'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/hrsh7th/vim-unite-vcs

Ⅳ. 文档说明

vim-unite-svn + VCSCommands

vim-unite-vcs

vim-unite-vcs defines unite sources and actions of any version control system (eg git, bazaar, mercurial, Subversion ). It can

Installation

Example

show log and diff revision

:Unite vcs/log     " will be shown your commit logs of current buffer.
                   " select a revision you want diff.
<tab>              " press tab to choose an unite action
diff               " choose diff action. will be shown diff between working copy and selected revision.

check status and commit

:Unite vcs/status  " will be shown your unstaged changes of vcs root.
                   " select file(s) you want to commit
<tab>              " press tab to choose commit action
commit             " choose commit action.

Source

  • vcs/log
  • vcs/status
  • (not yet)vcs/annotate
  • (not yet)vcs/branch

Actions

vcs/log

  • diff

    • Diff with revision(s) . If a revision was selected diff with working copy and two revisions were selected diff with each revisions.

vcs/status

  • commit

    • Commit file(s)
  • add

    • Add file(s)
  • delete

    • Delete file(s)
  • revert

    • Revert file(s)

添加新评论