Skip to content
An extension to fugitive.vim for gitlab support
Vim script Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
autoload
doc Default to project issues/members Mar 1, 2018
plugin Use FugitiveRemoteUrl Jan 5, 2019
test Fix test case Jan 5, 2019
.gitignore Ignore doc tags Feb 11, 2018
.travis.yml Add .travis.yml file Feb 18, 2018
README.md Add note about lack of pun name Jul 4, 2018

README.md

fugitive-gitlab.vim

Build Status

fugitive.vim is undoubtedly the best Git wrapper of all time.

This plugin allows you to use it with https://gitlab.com or your own private gitlab instance.

  • Enables :Gbrowse from fugitive.vim to open GitLab URLs

  • In commit messages, GitLab issues can be omni-completed (<C-X><C-O>, see :help compl-omni).

Installation

Install it as you would install fugitive.vim (you will also need fugitive.vim installed)

To use private gitlab repositories add the following to your .vimrc

let g:fugitive_gitlab_domains = ['https://my.gitlab.com']

fugitive command :Gbrowse will now work with gitlab URLs.

Curl is required for features that use the GitLab API (i.e., :Gbrowse doesn't need it). Generate a personal access token with api permissions and add it to your vimrc

let g:gitlab_api_keys = {'gitlab.com': 'myaccesstoken'}

To use omnicompletion with a private gitlab repository

let g:gitlab_api_keys = {'gitlab.com': 'mytoken1', 'my.gitlab.private': 'mytoken2' }

Omnicompletion functionality is subject to change.

Requirements

fugitive-gitlab.vim requires a modern fugitive.vim. API features require a gitlab instance with v4 of the API.

FAQ

How do I turn off that preview window that shows the issue body?

set completeopt-=preview

Why doesn't this plugin have a pun name?

I couldn't think of one.

License

Copyright (c) Steven Humphrey. Distributed under the same terms as Vim itself. See :help license.

You can’t perform that action at this time.