restclient.vim


Ⅰ. 插件描述

Ⅱ. 基本信息

创建日期:  2017-03-19
使用用户:  1
Github星:  6
插件作者:  Chris Paul

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

## An interactive HTTP client for Emacs in vim.

restclient.el which you can use in Vim!

there is overhead, less than you might think though, around 300ms. Rather than C-cC-c you just run :Restclient. For unformatted response output append -raw, like so: :Restclient -raw

To get the equivalent as a cURL command, use :RestclientCurl , which takes an optional register, and copies.

For installing in the comfort of your shell, just run:

emacs --quick --batch --eval="(progn(require 'package) (package-initialize) (add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t) (setq url-http-attempt-keepalives nil) (package-refresh-contents) (package-install 'restclient))"
For basic syntax highlighting, when editing requests, :set ft=conf. The response gets displayed in vim's internal pager, but this can be changed however, see :h :redir

添加新评论