{"id":24738697,"url":"https://github.com/zweifisch/pipe2eval","last_synced_at":"2025-10-10T08:30:21.971Z","repository":{"id":5814981,"uuid":"7030036","full_name":"zweifisch/pipe2eval","owner":"zweifisch","description":"REPL inside vim","archived":false,"fork":false,"pushed_at":"2017-04-12T05:04:12.000Z","size":830,"stargazers_count":72,"open_issues_count":3,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-03T18:08:32.279Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zweifisch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-06T04:52:24.000Z","updated_at":"2024-04-25T14:17:28.000Z","dependencies_parsed_at":"2022-08-31T16:43:55.098Z","dependency_job_id":null,"html_url":"https://github.com/zweifisch/pipe2eval","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zweifisch/pipe2eval","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fpipe2eval","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fpipe2eval/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fpipe2eval/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fpipe2eval/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zweifisch","download_url":"https://codeload.github.com/zweifisch/pipe2eval/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fpipe2eval/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003299,"owners_count":26083555,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-27T22:55:23.928Z","updated_at":"2025-10-10T08:30:21.615Z","avatar_url":"https://github.com/zweifisch.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pipe2eval\n\nsimple REPL inside vim\n\nsupports: python, php, coffee, mysql, mongodb, redis, sh, go, javascript, ruby, elixir ...\n\n## demos\n\ncoffeescript\n\n![coffeescript](https://github.com/zweifisch/pipe2eval/raw/master/demos/coffee.gif)\n\n* [mysql](https://github.com/zweifisch/pipe2eval/raw/master/demos/mysql.gif)\n* [mongodb](https://github.com/zweifisch/pipe2eval/raw/master/demos/mongodb.gif)\n\n## install\n\nvia vundle\n```vim\nBundle \"zweifisch/pipe2eval\"\n```\n\ntempfiles are put to `/dev/shm/` by default, `export PIP2EVAL_TMP_FILE_PATH` to\noverride.\n\nOn 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.\n\n## usage\n\npress `v\u003cspace\u003e` to evaluate current line, `vip\u003cspace\u003e` to evaluate a paragraph\n\nto specify a diffrent filetype use the Pipe2 command `:Pipe2 redis`, `:Pipe2 mongo` ...\n\nevaluate an empty line will clear the context\n\n## key mappings\nBy default, pipe2eval maps `\u003cSpace\u003e` in Visual mode with:\n\n```vim\n  vmap \u003cbuffer\u003e \u003cSpace\u003e ':![pipe2eval dir]/plugin/pipe2eval.sh text\u003cCR\u003e\u003cCR\u003e'\n```\n\nThis mapping can be customized by setting `g:pipe2eval_map_key`. For example:\n\n```vim\n  let g:pipe2eval_map_key = '\u003cLeader\u003ep2e'\n```\n\n### specify a mysql connection\n\n```sql\n-- hostname localhost\n-- username root\n-- password secret\n-- database test\n```\n\n### specify a mongodb connection\n\n```javascript\n// host localhost\n// port 27017\n// db test\n```\n\nmongodb commands\n\n```javascript\n//\u003e dbs\n//\u003e collections\n//\u003e version\n//\u003e status\n//\u003e status mem\n//\u003e connections\n//\u003e session\n```\n\n### special commands for shell\n\nevaluate commands on a remote maschine\n\n```\n#\u003e set ssh dbserver1\nuptime\n```\n\nend it\n```\n#\u003e set ssh\n```\n\n### c\n\n`v\u003cspace\u003e` to complie and run current file\n\npassing arguments\n\n```c\n// arg1 arg2\n```\n\n### sqlite\n\n`:Pipe2 sqlite`\n\n```sql\n-- file /path/to/sqlite3.db\n\n.mode line\nselect * from table limit 1;\n```\n\n### rust/go\n\n`v\u003cspace\u003e` to complie and run current file\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzweifisch%2Fpipe2eval","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzweifisch%2Fpipe2eval","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzweifisch%2Fpipe2eval/lists"}