{"id":13726696,"url":"https://github.com/onivim/reason-libvim","last_synced_at":"2025-05-07T22:30:30.147Z","repository":{"id":100513709,"uuid":"190307637","full_name":"onivim/reason-libvim","owner":"onivim","description":"Reason API for libvim","archived":true,"fork":false,"pushed_at":"2020-05-27T01:07:49.000Z","size":541,"stargazers_count":21,"open_issues_count":4,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-05T18:24:47.061Z","etag":null,"topics":["libvim","ocaml","oni","onivim","reason","reasonml","vim"],"latest_commit_sha":null,"homepage":"https://v2.onivim.io","language":"Reason","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/onivim.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}},"created_at":"2019-06-05T01:49:55.000Z","updated_at":"2023-01-28T14:24:12.000Z","dependencies_parsed_at":"2023-05-15T15:00:51.292Z","dependency_job_id":null,"html_url":"https://github.com/onivim/reason-libvim","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/onivim%2Freason-libvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onivim%2Freason-libvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onivim%2Freason-libvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onivim%2Freason-libvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onivim","download_url":"https://codeload.github.com/onivim/reason-libvim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252965069,"owners_count":21832817,"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":["libvim","ocaml","oni","onivim","reason","reasonml","vim"],"created_at":"2024-08-03T01:03:16.955Z","updated_at":"2025-05-07T22:30:28.344Z","avatar_url":"https://github.com/onivim.png","language":"Reason","funding_links":[],"categories":["Reason"],"sub_categories":[],"readme":"\u003e __NOTE:__ This is now deprecated - future development is happening in the core [Onivim 2](https://github.com/onivim/oni2) repo.\n\n# reason-libvim\n[![Build Status](https://dev.azure.com/onivim/oni2/_apis/build/status/onivim.reason-libvim?branchName=master)](https://dev.azure.com/onivim/oni2/_build/latest?definitionId=5\u0026branchName=master)\n\nReason API for [libvim](https://github.com/onivim/libvim) - an abstraction of Vim as an API.\n\n## Usage\n\n- Call `vimInit()` before anything else\n\n- Call `vimInput(\"i\")` or `vimInput(\"\u003cesc\u003e\")` to send keystrokes\n- Call `vimCommand(\"%s/hello/world/g\")` to execute Ex commands\n- Introspect the state with the API, for example:\n\n```\nvimInit();\n\nvimCommand(\"e ./aBigFile.txt\");\n\n/* Use 'G' to move to the end of the file */\nvimInput(\"G\");\n\n/* Print line position */\nprint_endline (\"Cursor is at line: \" ++ string_of_int(Cursor.getLine()));\n\n/* Type a at the beginning of the line */\nvimInput(\"I\");\nvimInput(\"a\");\n```\n\nFor more example usage, see the [test cases](https://github.com/onivim/reason-libvim/tree/master/test)\n\n## Documentation\n\nDocumentation is available [here](https://onivim.github.io/reason-libvim/libvim/Vim/index.html)\n\n## License\n\n[MIT License](./LICENSE)\n\nCopyright 2019 Outrun Labs, LLC\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonivim%2Freason-libvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonivim%2Freason-libvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonivim%2Freason-libvim/lists"}