regopher.vim


Ⅰ. 插件描述

vim plugin for regopher [experimental]

Ⅱ. 基本信息

创建日期:  2018-11-25
使用用户:  1
Github星:  3
插件作者:  Am Laher

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# regopher.vim

Experimental vim plugin for regopher.

It's extremely early so there's not much here and everything will change in future versions.

Thanks

regopher.vim has been almost entirely lifted from vim-go.

I made it this way because vim-go is so good, but also because I hope one day that regopher might be adopted as part of vim-go. It might not happen or even need to happen, but it's a nice thought, and it should encourage adoption to play nicely.

I renamed all global functions and variables, to avoid interfering with vim-go itself.

Installation

regopher.vim requires at least vim 8 or Neovim 0.3.1. (It might work on vim 7.4, but I figure vim 8 is established enough that I should focus on that)

regopher.vim follows the standard runtime path structure, and can be installed with plugin managers

I use vim-plug. Installation is as follows:

    Plug 'laher/regopher.vim', { 'do': ':ReGoUpdate' }

For other plugin managers, you should execute :ReGoUpdate after installation. This will go get the latest version of regopher.

Usage

  • From any buffer, :ReGoUpdate
  • With cursor over a function definition, :ReGoParamsToStruct
  • With cursor over a function definition, :ReGoResultsToStruct

Please see doc/regopher.txt for instructions, or :help regopher

License

This plugin is distributed with its own MIT license in keeping with regopher, plus a copy of vim-go's BSD 3-clause license

添加新评论