vim-gosrc


Ⅰ. 插件描述

Open golang src in Vim

Ⅱ. 基本信息

创建日期:  2015-11-30
使用用户:  4
Github星:  7
插件作者:  MURAOKA Taro

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# Gosrc plugin for Vim

:Gosrc command open a golang source file with completion which is at
$GOROOT or $GOPATH.

Install

Copy plugin/go/gosrc.vim into your ~.vim/plugin or so.

How to use

When you type like this

:Gosrc gi<tab>

You'll get like this

:Gosrc github.com/

It was completed from $GOROOT or $GOPATH.

Then complete path for depth...

:Gosrc github.com/koron/upgorade/upgorade-vim.go<ENTER>

It opens (with :split) a source file from $GOPATH (or $GOROOT).

添加新评论