vim-metarw-gist


Ⅰ. 插件描述

Vim plugin: metarw scheme for gist

Ⅱ. 基本信息

创建日期:  2011-10-06
使用用户:  1
Github星:  8
插件作者:  Shota Nozaki

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# Requirements

Usage

Please run the following command first.

:call metarw#gist#authorize()

Or set g:metarw_gist_user and g:metarw_gist_token.

About the token: http://developer.github.com/v3/oauth/

Example:

let g:metarw_gist_user = 'emonkak'
let g:metarw_gist_token = '0000000000000000000000000000000000000000'

List own gists

:edit gist:

List any user gists

:edit gist:username

List files of a gist id

:edit gist:username/12345

Post current buffer as new gist

:write gist:

Update current open gist

:write

Options

g:metarw_gist_user

Default: system('git config --global github.user') or $GITHUB_USER

g:metarw_gist_token

Default: system('git config --global github.token') or $GITHUB_TOKEN

g:metarw_gist_safe_write

Throw error when execute command such as :w.
If you want to save, execute with a ! modifier.

Default: 0

添加新评论