/vim-open-repo

Another vim plugin to open your current line in the repository site.

Primary LanguageVim ScriptMIT LicenseMIT

vim-open-repo

Another vim plugin to open your current line in the repository website (Github, Gitlab or Bitbucket).

Installation

As any other plugin. Example using vim-plug:

call plug#begin('~/.vim/plugged')

Plug 'nicolasacquaviva/vim-open-repo'

call plug#end()

Usage

Call :OpenRepo in any line or visual selection of lines to open the repository url.

Optional configuration

Define a default branch, if this variable is not defined, it will open the current branch.

let g:vim_open_repo_default_branch = 'develop'