Skip to content
Simple http rest tool for vim
Python Vim script
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc fix #6 automatic redirects Apr 10, 2018
ftdetect initial Jun 20, 2015
ftplugin Many awesome features Sep 21, 2017
img Many awesome features Sep 21, 2017
plugin XML formatter Sep 27, 2017
server Many awesome features Sep 21, 2017
syntax fix path highlighting Apr 24, 2018
vial-plugin/vial_http RequestContext object has no attribute 'cookie' May 7, 2018
.gitignore py3 support Sep 29, 2017
CHANGELOG.rst fix #6 automatic redirects Apr 10, 2018
LICENSE Initial commit Jun 20, 2015
README.md fix #7 client certificate support Apr 9, 2018

README.md

vial-http

Awesome http REST tool for vim

Templates in action: templates

Features:

  • Intuitive syntax mimics HTTP protocol
  • Templates to capture state
  • Response and connection times in status line
  • Automatic json request body detector
  • Automatic json/xml response formatter
  • Separate buffers for response body, response headers and request
  • DRY
  • Support for HTTP basic auth
  • Support for ssl client certificates

Install

vial-http is pathogen friendly and only requires vial to be installed:

cd ~/.vim/bundle
git clone https://github.com/baverman/vial.git
git clone https://github.com/baverman/vial-http.git

or for Plug:

Plug 'baverman/vial'
Plug 'baverman/vial-http'

Note: vim should be compiled with python or python3 support.

Docs

You need following options in your vimrc:

set hidden
filetype plugin on

hidden must be set because Vial-Http uses non-file temporary offscreen buffers with response content and without hidden they will be empty.

filetype plugin on needed for default keymap working.

Keymap:

  • <leader><cr> executes request line under the cursor
  • <c-k>/<c-j> cycle throw response/request/response headers windows

Commands:

  • :VialHttp executes request line under the cursor
  • :VialHttpBasicAuth [username] makes Authorization header

Tutorial

You can’t perform that action at this time.