REPL inside vim
Switch branches/tags
Nothing to show
Clone or download
zweifisch Merge pull request #14 from bounceme/patch-2
use node eval-print flag
Latest commit a4d8376 Apr 12, 2017
Failed to load latest commit information.
demos demos added Dec 16, 2012
doc Add key-mapping customization option Sep 11, 2013
plugin use node eval-print flag Apr 8, 2017
.gitignore add sqlite3 support May 11, 2014 fix rust Nov 29, 2014


simple REPL inside vim

supports: python, php, coffee, mysql, mongodb, redis, sh, go, javascript, ruby, elixir ...





via vundle

Bundle "zweifisch/pipe2eval"

tempfiles are put to /dev/shm/ by default, export PIP2EVAL_TMP_FILE_PATH to override.

On Mac OS X, /dev/ is highly locked down permissions wise. If you're on OS X it's recommended to use another folder, such as /tmp/shms or similar (you'll have to create it). To this by adding export PIP2EVAL_TMP_FILE_PATH=/tmp/shms to your Bash/ZSH RC file.


press v<space> to evaluate current line, vip<space> to evaluate a paragraph

to specify a diffrent filetype use the Pipe2 command :Pipe2 redis, :Pipe2 mongo ...

evaluate an empty line will clear the context

key mappings

By default, pipe2eval maps <Space> in Visual mode with:

  vmap <buffer> <Space> ':![pipe2eval dir]/plugin/ text<CR><CR>'

This mapping can be customized by setting g:pipe2eval_map_key. For example:

  let g:pipe2eval_map_key = '<Leader>p2e'

specify a mysql connection

-- hostname localhost
-- username root
-- password secret
-- database test

specify a mongodb connection

// host localhost
// port 27017
// db test

mongodb commands

//> dbs
//> collections
//> version
//> status
//> status mem
//> connections
//> session

special commands for shell

evaluate commands on a remote maschine

#> set ssh dbserver1

end it

#> set ssh


v<space> to complie and run current file

passing arguments

// arg1 arg2


:Pipe2 sqlite

-- file /path/to/sqlite3.db

.mode line
select * from table limit 1;


v<space> to complie and run current file