{"id":13479807,"url":"https://github.com/thoughtbot/vim-rspec","last_synced_at":"2026-01-28T04:34:15.088Z","repository":{"id":7813795,"uuid":"9184567","full_name":"thoughtbot/vim-rspec","owner":"thoughtbot","description":"Run Rspec specs from Vim","archived":false,"fork":false,"pushed_at":"2024-09-23T18:18:57.000Z","size":46,"stargazers_count":657,"open_issues_count":19,"forks_count":106,"subscribers_count":48,"default_branch":"main","last_synced_at":"2025-01-09T06:51:48.610Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://robots.thoughtbot.com","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/thoughtbot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2013-04-03T01:51:45.000Z","updated_at":"2024-09-30T17:52:15.000Z","dependencies_parsed_at":"2024-11-11T08:39:26.975Z","dependency_job_id":"d3202fc1-0aeb-4b69-9a03-5a43cd13b0d7","html_url":"https://github.com/thoughtbot/vim-rspec","commit_stats":{"total_commits":46,"total_committers":27,"mean_commits":"1.7037037037037037","dds":0.6956521739130435,"last_synced_commit":"52a72592b6128f4ef1557bc6e2e3eb014d8b2d38"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoughtbot%2Fvim-rspec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoughtbot%2Fvim-rspec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoughtbot%2Fvim-rspec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoughtbot%2Fvim-rspec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thoughtbot","download_url":"https://codeload.github.com/thoughtbot/vim-rspec/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240867429,"owners_count":19870405,"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":[],"created_at":"2024-07-31T16:02:23.287Z","updated_at":"2026-01-28T04:34:10.033Z","avatar_url":"https://github.com/thoughtbot.png","language":"Vim Script","funding_links":[],"categories":["Vim Script"],"sub_categories":[],"readme":"\u003e [!NOTE]\n\u003e `vim-rspec` is in maintenance-mode. We’re not actively adding new features,\nbut we’ll fix bugs and keep it up to date.\n\n# rspec.vim\n\nThis is a lightweight RSpec runner for Vim and MacVim.\n\n## Installation\n\nRecommended installation with [vundle](https://github.com/gmarik/vundle):\n\n```vim\nPlugin 'thoughtbot/vim-rspec'\n```\n\nIf using zsh on OS X it may be necessary to move `/etc/zshenv` to `/etc/zshrc`.\n\n## Configuration\n\n### Key mappings\n\nAdd your preferred key mappings to your `.vimrc` file.\n\n```vim\n\" RSpec.vim mappings\nmap \u003cLeader\u003et :call RunCurrentSpecFile()\u003cCR\u003e\nmap \u003cLeader\u003es :call RunNearestSpec()\u003cCR\u003e\nmap \u003cLeader\u003el :call RunLastSpec()\u003cCR\u003e\nmap \u003cLeader\u003ea :call RunAllSpecs()\u003cCR\u003e\n```\n\n### Custom command\n\nOverwrite the `g:rspec_command` variable to execute a custom command.\n\nExample:\n\n```vim\nlet g:rspec_command = \"!rspec --drb {spec}\"\n```\n\nThis `g:rspec_command` variable can be used to support any number of test\nrunners or pre-loaders. For example, to use\n[Dispatch](https://github.com/tpope/vim-dispatch):\n\n```vim\nlet g:rspec_command = \"Dispatch rspec {spec}\"\n```\nOr, [Dispatch](https://github.com/tpope/vim-dispatch) and\n[Zeus](https://github.com/burke/zeus) together:\n\n```vim\nlet g:rspec_command = \"compiler rspec | set makeprg=zeus | Make rspec {spec}\"\n```\n\n### Custom runners\n\nOverwrite the `g:rspec_runner` variable to set a custom launch script. At the\nmoment there are two MacVim-specific runners, i.e. `os_x_terminal` and\n`os_x_iterm`. The default is `os_x_terminal`, but you can set this to anything\nyou want, provided you include the appropriate script inside the plugin's\n`bin/` directory.\n\n#### iTerm instead of Terminal\n\nIf you use iTerm, you can set `g:rspec_runner` to use the included iterm\nlaunching script. This will run the specs in the last session of the current\nterminal.\n\n```vim\nlet g:rspec_runner = \"os_x_iterm\"\n```\n\nIf you use the iTerm2 nightlies, the `os_x_iterm` runner will not work\n(due to AppleScript incompatibilities between the old and new versions of iTerm2).\n\nInstead use the `os_x_iterm2` runner, configure it like so:\n\n```vim\nlet g:rspec_runner = \"os_x_iterm2\"\n```\n\n## Running tests\n\nTests are written using [`vim-vspec`](https://github.com/kana/vim-vspec)\nand run with [`vim-flavor`](https://github.com/kana/vim-flavor).\n\nInstall the `vim-flavor` gem, install the dependencies and run the tests:\n\n```\ngem install vim-flavor\nvim-flavor install\nrake\n```\n\nCredits\n-------\n\n![thoughtbot](https://thoughtbot.com/logo.png)\n\nrspec.vim is maintained by [thoughtbot's Vim enthusiasts](https://thoughtbot.com/upcase/vim)\nand [contributors](https://github.com/thoughtbot/vim-rspec/graphs/contributors)\nlike you. Thank you!\n\nIt was strongly influenced by Gary Bernhardt's [Destroy All\nSoftware](https://www.destroyallsoftware.com/screencasts) screencasts.\n\n## License\n\nrspec.vim is copyright © 2016 thoughtbot. It is free software, and may be\nredistributed under the terms specified in the `LICENSE` file.\n\nThe names and logos for thoughtbot are trademarks of thoughtbot, inc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtbot%2Fvim-rspec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthoughtbot%2Fvim-rspec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtbot%2Fvim-rspec/lists"}