Skip to content

syngan/vim-gitlab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.vimWeb.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

About

vim-gitlab is a vim client for GitLab

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published