Skip to content

gabebw/vim-github-link-opener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

vim-github-link-opener

Ever seen something like this?

gem "github/linguist"

Or this?

Check out gabebw/dotfiles for more.

Or what about this (in Go files):

import (
  "github.com/spf13/cobra"
  "github.com/stretchr/testify/assert"
)

Or npm packages (uses npm repo):

const jwt = require('jsonwebtoken');
import jwt from 'jsonwebtoken';

Wouldn't it be cool if you could quickly open https://github.com/github/linguist, https://github.com/gabebw/dotfiles, https://github.com/spf13/cobra, https://github.com/stretchr/testify or https://github.com/auth0/node-jsonwebtoken?

This plugin lets you do exactly that!

It's exactly like visiting other URLs in vim: type gx when your cursor is anywhere in the string, and this plugin will open the GitHub project in your browser.

It won't change how gx treats other URLs. They'll still work. And if you use @christoomey's excellent vim-quicklink, that will keep working too.

Installation

With vim-plug:

Plug 'gabebw/vim-github-link-opener', {'branch': 'main'}

Then run :PlugInstall.

About

Open things that look like GitHub URLs (like "foo/bar") in your browser. Supports Ruby, Go, NPM and plain text.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •