simple REPL inside vim
supports: python, php, coffee, mysql, mongodb, redis, sh, go, javascript, ruby, elixir ...
coffeescript
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
By default, pipe2eval maps <Space> in Visual mode with:
vmap <buffer> <Space> ':![pipe2eval dir]/plugin/pipe2eval.sh text<CR><CR>'This mapping can be customized by setting g:pipe2eval_map_key. For example:
let g:pipe2eval_map_key = '<Leader>p2e'-- hostname localhost
-- username root
-- password secret
-- database test// host localhost
// port 27017
// db testmongodb commands
//> dbs
//> collections
//> version
//> status
//> status mem
//> connections
//> sessionevaluate commands on a remote maschine
#> set ssh dbserver1
uptime
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
