Opens GitHub URL of current file, etc. from Vim. Also supports GitHub Enterprise.
This plugin requires:
gitcommand in your PATH
There are 3 commands.
Opens a specific file in github.com repository(it also opens in the current branch by default).
" Opens current files URL in github.com :OpenGithubFile " Opens current files highlighted place in github.com :'<,'>OpenGithubFile " Opens a specific file in github.com :OpenGithubFile PATH/TO/FILE
Opens a specific Issue.
" Opens current repositories Issue #1 :OpenGithubIssue 1 " Opens a specific repositories Issue #1 :OpenGithubIssue 1 tyru/open-browser.vim
The third command is
:OpenGithubPullReq, but it does entirely the same thing as
:OpenGithubIssue since GitHub redirects
/pull/1 if #1 is a Pull Request.
GitHub Enterprise setting
Like the hub command, by setting
hub.host, you can open a GitHub Enterprise repository page.
You can set
hub.host by executing the command below. Make sure you execute it in the git repository.
$ git config --local hub.host my.git.org