{"id":19026574,"url":"https://github.com/sbdchd/vim-run","last_synced_at":"2025-06-30T06:03:50.528Z","repository":{"id":152740745,"uuid":"52189664","full_name":"sbdchd/vim-run","owner":"sbdchd","description":":runner: A Neovim plugin to run the current filetype.","archived":false,"fork":false,"pushed_at":"2023-06-22T23:54:58.000Z","size":12,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-02T02:29:14.783Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Vim Script","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/sbdchd.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-21T03:57:28.000Z","updated_at":"2023-06-22T23:55:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"5158b2f1-ab5f-4609-a576-fbcc5a4c51f8","html_url":"https://github.com/sbdchd/vim-run","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbdchd%2Fvim-run","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbdchd%2Fvim-run/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbdchd%2Fvim-run/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbdchd%2Fvim-run/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sbdchd","download_url":"https://codeload.github.com/sbdchd/vim-run/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240072217,"owners_count":19743550,"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-11-08T20:49:43.048Z","updated_at":"2025-02-21T19:22:33.880Z","avatar_url":"https://github.com/sbdchd.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vim-run\n\nA plugin to run the current file in a terminal split using neovim's terminal functionality.\n\nThis plugin is based on [vim-go's](https://github.com/fatih/vim-go) `:GoRun`.\n\n_Requires [Neovim](https://neovim.io)_\n\n## Install\n\n[vim-plug](https://github.com/junegunn/vim-plug)\n\n```viml\nPlug 'sbdchd/vim-run'\n```\n\n## Usage\n\nRun the current file with the default shebang / command.\n\n`:Run`\n\nTo specify a command to run the current file, pass the command and its arguments\nto `:Run`. The filepath will be automatically appended.\n\n```viml\n:Run python3 -b -E\n```\n\nRun the current file using a specific filetype.\n\n```viml\n:Run javascript\n```\n\nIf you wish to end execution before the program has returned, simply type\n`\u003cctrl\u003e + c` or return to normal mode by hitting `\u003cescape\u003e` and then type `:q`.\n\nIf the file has a shebang, `:Run` will execute the file using that shebang.\nOtherwise, `:Run` will use the default command for the filetype.\n\n## Configuration [Optional]\n\nYou can define your own default commands for specific filetypes.\n\n_Note:_ Your command must be in the naming scheme `g:run_cmd_\u003cFILETYPE\u003e`.\n\nIf your command is only one element long, then the filepath with be added automatically.\n\n```viml\nlet g:run_cmd_python = ['python3']\n```\n\nA more advance example.\n\n```viml\nlet g:run_cmd_java = [\n                \\ 'javac',\n                \\ '-g:none',\n                \\ run#defaults#fullfilepath(),\n                \\ '\u0026\u0026',\n                \\ 'java',\n                \\ run#defaults#basefilename()\n                \\ ]\n```\n\nEnabled auto-closing of `:Run` output window when the command exits.\n\n```viml\nlet g:run_auto_close = 1\n```\n\nChoose the direction of splitting (up, down, left, right).\n\n```viml\nlet g:run_split = 'down'\n```\n\n## Supported Filetypes\n\n- Applescript\n- Bash\n- Coffescript\n- Elixir\n- Erlang (Escript)\n- Go\n- Haskell (GHCI)\n- Idris\n- Java\n- Javascript (Node)\n- Lua\n- Moonscript\n- Perl\n- Php\n- Python\n- Ruby\n- Sh\n- Typescript\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbdchd%2Fvim-run","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbdchd%2Fvim-run","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbdchd%2Fvim-run/lists"}