vim-gitlab is a vim client for GitLab
Use any bundle management as you want, for example, using Plug.
Plug 'bilbopingouin/vim-gitlab', {
\ 'autoload' : {
\ 'commands' : 'Gitlab'}}
Several servers or configuration could be defined. For example, the FOO
configuration could look like
g:gitlab_config['FOO'] = {
\ 'url' : 'https://www.myserver.com/gitlab',
\ 'user' : 'myself',
\ 'email' : 'myself@myserver.com',
\ 'password' : 'optional',
\}
But more recent version of Gitlab recommends alternative authentification methods instead of passwords. You could use the Gitlab's GUI to get a private token. And then configure as
g:gitlab_config['FOO'] = {
\ 'url' : 'https://www.myserver.com/gitlab',
\ 'user' : 'myself',
\ 'email' : 'myself@myserver.com',
\ 'password' : '',
\ 'token' : {'token' : 'private token hash', 'url' : 'https://www.myserver.com/gitlab/api/v4'},
\}
To list the issues of the repo sandbox
from the root
namespace using the FOO
configuration, you could use
:Gitlab FOO issues root/sandbox
So far, it is mostly the original work from synegan, and I haven't tested everything. However, I already found the following:
- Only issues (and their respective comments) are accessed (no merge request, or other)
- Longer path fail, e.g.
root/sandbox/myrepo
- The original work was made for gitlab's v3, this one is made for gitlab's v4. It isn't possible to switch between the versions at this stage.
This is a fork from synegan's vim-gitlab.
I kept the zlib license, but mentioned the files that I modified.
For an earlier work, see also