vim-github-link-opener


Ⅰ. 插件描述

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

Ⅱ. 基本信息

创建日期:  2017-12-10
使用用户:  2
Github星:  2
插件作者:  Gabe Berke-Williams

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'gabebw/vim-github-link-opener'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'gabebw/vim-github-link-opener'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'gabebw/vim-github-link-opener'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/gabebw/vim-github-link-opener

Ⅳ. 文档说明

# 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'

Then run :PlugInstall.

添加新评论