Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

xiaogaozi/easy-gitlab.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

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