Ⅰ. 插件描述
:baby_chick: vimscript for esa.io :baby_chick:Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用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/namePost selected text to esa
:'<,'>Esa path/to/category/nameCreate a public (sharing post) esa.
:Esa -p path/to/category/nameOpen the esa on browser after you post
:Esa -bCopy the URL after you post
:Esa -cCreate 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:
- curl command (http://curl.haxx.se/)
- webapi-vim (https://github.com/mattn/webapi-vim)
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.