vim-gitlab


Ⅰ. 插件描述

vim-gitlab is a vim client for GitLab

Ⅱ. 基本信息

创建日期:  2013-11-12
使用用户:  1
Github星:  14
插件作者:  syngan

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim-gitlab

Build Status

vim-gitlab is a vim client for GitLab

GitLab を vim から参照・変更するプラグインです.

id vs iid

When you work with API you may notice two similar fields in api entites: id and iid.
The main difference between them is scope. Example:

Issue
id: 46
iid: 5

  • id - is uniq across all Issues table. It used for any api calls.
  • iid - is uniq only in scope of single project. When you browse issues or merge requests with Web UI - you see iid.

So if you want to get issue with api you use http://host/api/v3/.../issues/:id.json
But when you want to create a link to web page - use http:://host/project/issues/:iid.json

  • thinca さんの vim-github を元にコピー&修正で作成しています.

Install

NeoBundleLazy 'syngan/vim-gitlab', {
    \ 'autoload' : {
    \ 'commands' : 'Gitlab'}}
  • required

    • GitLab 6-2-stable
    • +python or curl or wget (vital.vim の Web.HTTP に依存)

Config

以下のように変数 g:gitlab_config を定義します.

g:gitlab_config['__name__'] = {
\    'url' : 'http://localhost/',
\    'user' : '',
\    'email' : 'admin@local.host',
\    'password' : 'optional',
\}

Usage

下記のようにして, g:gitlab_config で定義した __name__ にアクセスします.
root/sandbox はリポジトリ名.

:Gitlab __name__ issues root/sandbox

Screenshot

issues list

Issues LIST

show issue #2

Issues LIST

add comment

Issues LIST

show issues #2

Issues LIST

添加新评论