easygit


Ⅰ. 插件描述

A git wrapper focus on simplity and usability

Ⅱ. 基本信息

创建日期:  2016-01-04
使用用户:  10
Github星:  31
插件作者:  qiming zhao

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'chemzqm/easygit'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'chemzqm/easygit'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'chemzqm/easygit'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# Easygit



A git wrapper plugin made to replace fugitive,
it can be used together with fugitive as commands are disabled by default.

The goal make cleaner code, and be more friendly to user (especially using with
macvim)

Features

  • Consist behaviour, command always work in the git directory of current file
  • Be quiet, no ugly press any key to continue, and use dispatch method when
    possible
  • Clean code, avoid madness hack like errorformat etc.
  • Friendly keymaping, when enter temporary buffer precess q would help you to
    quit, no close window if opened by edit command
  • Expose flexible API, in autoload/easygit.vim
  • Works good with other plugins since filetype is nofile, your mru plugin and
    status line plugin should easily ignore them.

Commands

Commands are disabled by default, if you want to use them, you have to add

let g:easygit_enable_command = 1

To your .vimrc

  • Gcd make vim cd to git root directory.
  • Glcd make vim lcd to git root directory.
  • Gblame Git blame current file, you can use p to preview commit and d
  1. diff with current file.
  • GcommitCurrent Git commit current file with message as command args.
  • GdiffThis Side by side diff of current file with head or any ref.
  • Gcommit Git commit with command line argument.
  • Gedit Edit git reference from git show.
  • Gdiff Git diff with command line argument.
  • Gremove Git remove with command line argument, remove current file
  1. arguments empty.
  • Grename Rename current by git mv, file in buffer list would react the changes.
  • Gmove Git mv with command line argument.
  • Gcheckout Git checkout with command line argument.
  • Gpush Git push with arguments, dispatch when possible.
  • Gpull Git pull with arguments, dispatch when possible.
  • Gfetch Git fetch with arguments, dispatch when possible.
  • Gadd Git add with arguments.
  • Gstatus Show git status in a temporary buffer.
  • Ggrep Git grep repo of current file, and show result in quickfix
  • Gmerge Git merge with branch complete

Those commands have reasonable complete setting, use <tab> to complete
commands.

添加新评论