Skip to content

xiaogaozi/easy-gitlab.vim

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

easy-gitlab.vim

This plugin was forked from github-vim, but use with GitLab.

Description

This is a quick and dirty Vim plugin to use some GitLab features locally from Vim.

It enables you to:

  • Open a link to the corresponding GitLab file of a local Vim selection
  • Add a comment to the corresponding GitLab commit of a locally selected line

Installation

Install using pathogen.vim, Vundle, NeoBundle, or your favorite Vim package manager.

Usage

Set g:easy_gitlab_url in your ~/.vimrc file:

let g:easy_gitlab_url = 'http://git.example.com'

Then you can:

  • Open selection: create a selection in visual mode and press glo
  • Comment commit: on the relevant line press glc in normal mode

To remap the keybinding in your ~/.vimrc use:

  • map <F5> <Plug>GitlabOpen
  • map <F6> <Plug>GitlabComment

About

Use Vim and GitLab with ease

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published