esa.vim


Ⅰ. 插件描述

:baby_chick: vimscript for esa.io :baby_chick:

Ⅱ. 基本信息

创建日期:  2016-02-29
使用用户:  1
Github星:  19
插件作者:  Yu SERIZAWA

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

### esa.vim

This is a vimscript for esa (https://esa.io/).

For the latest version please see https://github.com/upamune/esa.vim.

Usage:

Implemented :rocket:

  • Post current buffer to esa

        :Esa path/to/category/name
    
  • Post selected text to esa

        :'<,'>Esa path/to/category/name
    
  • Create a public (sharing post) esa.

        :Esa -p path/to/category/name
    
  • Open the esa on browser after you post

        :Esa -b
    
  • Copy the URL after you post

        :Esa -c
    
  • Create a wip post.

        :Esa -w
    

Install with vim-plug

Add the following lines to your .vimrc.

Plug 'mattn/webapi-vim' | Plug 'upamune/esa.vim'

Now restart Vim and run :PlugInstall.

Install with NeoBundle

Add the following line to your .vimrc.

NeoBundle 'upamune/esa.vim', {'depends': 'mattn/webapi-vim'}

Requirements:

Setup:

You should set a team name.

let g:esa_team = 'docs'

The plugin stores its credentials in ~/.esa-vim.

The token is stored in ~/.esa-vim. If you stop using the plugin, you can
easily remove this file.

添加新评论