Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be able to specify github domains #21

Open
owenlin0 opened this issue Sep 8, 2016 · 1 comment
Open

Be able to specify github domains #21

owenlin0 opened this issue Sep 8, 2016 · 1 comment

Comments

@owenlin0
Copy link

owenlin0 commented Sep 8, 2016

Just recently switched from Vim to Spacemacs, which includes this package for browsing Github. My company uses Github enterprise at work so it'd be nice if we could specify a Github domain like we can do for vim-fugitive. By setting a variable in the ~/.vimrc, you could tell Fugitive where to open Github links. Fugitive somehow figures out the right path (Github Enterprise vs. Github.com).

Usage in vim-fugitive:

  1. Set let g:fugitive_github_domains = ['github.com', 'git.musta.ch']
  2. :Gbrowse is now configured to properly look up from the list of Github domains.

https://github.com/tpope/vim-fugitive/blob/c00ebd75ac23f4080c0d0bf9453b16304a3fb316/plugin/fugitive.vim#L2351

@slackorama
Copy link

slackorama commented Nov 23, 2016

I took a stab at this with #22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants