{"id":19051914,"url":"https://github.com/benknoble/vim-simpl","last_synced_at":"2025-04-24T01:25:53.458Z","repository":{"id":70217154,"uuid":"232718734","full_name":"benknoble/vim-simpl","owner":"benknoble","description":"(Yet another) REPL/interpreter for vim","archived":false,"fork":false,"pushed_at":"2024-12-29T02:58:35.000Z","size":17,"stargazers_count":7,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T09:34:28.511Z","etag":null,"topics":["interpreter","repl","vim","vim-plugin"],"latest_commit_sha":null,"homepage":"","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benknoble.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-01-09T04:01:05.000Z","updated_at":"2025-01-13T02:03:03.000Z","dependencies_parsed_at":"2025-04-17T21:06:36.062Z","dependency_job_id":"363ea9a2-3757-4205-aba5-538cf9377f54","html_url":"https://github.com/benknoble/vim-simpl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benknoble%2Fvim-simpl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benknoble%2Fvim-simpl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benknoble%2Fvim-simpl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benknoble%2Fvim-simpl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benknoble","download_url":"https://codeload.github.com/benknoble/vim-simpl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250542635,"owners_count":21447746,"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","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":["interpreter","repl","vim","vim-plugin"],"created_at":"2024-11-08T23:20:03.580Z","updated_at":"2025-04-24T01:25:53.421Z","avatar_url":"https://github.com/benknoble.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vim-simpl\n\n(Yet another) REPL/interpreter plugin for vim\n\n[![This project is considered experimental](https://img.shields.io/badge/status-experimental-critical.svg)](https://benknoble.github.io/status/experimental/)\n\n## Goals\n\nvim-simpl aims to be the simplest functional REPL/interpreter plugin for vim.\n\nIt prefers customization over sane defaults, and doesn't attempt to work\nout-of-the-box for everyone, everywhere. (Many languages have different\nREPL/interpreters to choose from; vim-simpl does not attempt to force the\ncreator's preferences on others.)\n\nIt prefers library-style functions and a map-it-yourself attitude, so *you* are\nin control of how you interact with your REPL/interpreter. (Prefer commands to\nmaps? Great!  You're in control, so setup whatever you like!)\n\nIt provides (at time of writing) two core features. Namely:\n\n1. the ability to quickly start a filetype-relevant REPL/interpreter, or a shell\n   if none exists; and\n2. the ability to \"load\" a file/module into an existing REPL/interpreter\n   (creating a new one if one does not yet exist)\n\n(2) differs in terminology and semantics for many languages. Examples would be\nthe `source` command in bash, the `(load)` function in lisp, and the `use`\nfunction in SML. vim-simpl *does* attempt to provide sane defaults here, because\nthey are mostly affected by *language* and not by *tool*.\n\nThis fits the author's needs, and prevents him from having to write a lot of\nextra code to support everyone's favorite mapping or REPL/interpreter.\n\n## Interface\n\n1. Loading a REPL/interpreter\n\nSet `b:interpreter` to a program you would like to run. In most cases, this is a\none-word string such as `'python'` or `'clj'`. It can, however, be a more\ncomplex value, such as the author's odd java variant `'bash -c \"make jdb ||\njdb\"`.\n\n**Note** that this program is not executed by `'shell'`, so using shell features\nrequires a level of \"wrapping.\"\n\nWith `b:interpreter` set, use the following ex command:\n\n```vim\ncall simpl#repl()\n```\n\nSee the docs for more on this function's arguments.\n\nIf `b:interpreter` is not set, the default is your shell.\n\n2. Loading a file/module into an existing REPL/interpreter\n\nIf the appropriate callbacks have been registered for the filetype, you need to\nknow about the following functions.\n\nThe first loads the current buffer:\n\n```vim\ncall simpl#load()\n```\n\nSee the docs for more on this function's arguments.\n\nThe second prompts for a buffer to load:\n\n```vim\ncall simpl#prompt_and_load()\n```\n\nIf the filetype is not registered, these will be no-ops, making them safe for\nglobal mapping.\n\nAs always, see the docs for more information, including how to register new\nfiletypes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenknoble%2Fvim-simpl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenknoble%2Fvim-simpl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenknoble%2Fvim-simpl/lists"}