{"id":19026581,"url":"https://github.com/sbdchd/vim-shebang","last_synced_at":"2026-05-01T00:30:15.632Z","repository":{"id":152740755,"uuid":"49616694","full_name":"sbdchd/vim-shebang","owner":"sbdchd","description":":metal: A simple plugin to insert the correct shebang of the file.","archived":false,"fork":false,"pushed_at":"2017-04-22T14:20:31.000Z","size":8,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-02T02:29:15.772Z","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":"bsd-2-clause","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":"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":"2016-01-14T02:22:29.000Z","updated_at":"2023-06-20T23:51:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"3be07cab-7b66-4cc7-b58d-59c6a579a7b3","html_url":"https://github.com/sbdchd/vim-shebang","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-shebang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbdchd%2Fvim-shebang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbdchd%2Fvim-shebang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbdchd%2Fvim-shebang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sbdchd","download_url":"https://codeload.github.com/sbdchd/vim-shebang/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240072218,"owners_count":19743551,"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.996Z","updated_at":"2026-05-01T00:30:15.526Z","avatar_url":"https://github.com/sbdchd.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vim-shebang [![Build Status](https://travis-ci.org/sbdchd/vim-shebang.svg?branch=master)](https://travis-ci.org/sbdchd/vim-shebang) [![Circle CI](https://circleci.com/gh/sbdchd/vim-shebang.svg?style=svg)](https://circleci.com/gh/sbdchd/vim-shebang) [![Build Status](https://drone.io/github.com/sbdchd/vim-shebang/status.png)](https://drone.io/github.com/sbdchd/vim-shebang/latest)\n\nA simple plugin to insert the correct shebang of the file.\n\n## Install\n\n[vim-plug](https://github.com/junegunn/vim-plug)\n\n```viml\nPlug 'sbdchd/vim-shebang'\n```\n\n## Usage\n\nRun the command `:ShebangInsert` or use an autocmd e.g., `au! BufNewFile * ShebangInsert`.\n\nNormally, `:ShebangInsert` will not overwrite an existing shebang.\nBy calling the command with a bang, `:ShebangInsert!`, any existing shebang\nwill be overwritten.\n\nAdditionally, a shebang can be specified by passing a name/filetype to `:ShebangInsert`.\n\n```viml\n:ShebangInsert python\n```\n\nor\n\n```viml\n:ShebangInsert node\n```\n\nYou can also directly pass your desired shebang to the function.\n\n```viml\n:ShebangInsert #!/bin/sh\n```\n\n## Config\n\nTo add/change/remove a shebang and filetype, simple create the dictionary `g:shebang#shebangs`\nin your `.vimrc`.\n\n```viml\nlet g:shebang#shebangs = {\n            \\ 'python': '#!/bin/python',\n            \\ 'sh': '',\n            \\ 'newfiletype': '#!/bin/newshebang'\n            \\ }\n```\n\n## Supported Filetypes\n\n- Applescript\n- Bash\n- Erlang (Escript)\n- Fish\n- Lua\n- Node\n- Perl\n- PHP\n- Python\n- Ruby\n- Sh\n- Zsh\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbdchd%2Fvim-shebang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbdchd%2Fvim-shebang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbdchd%2Fvim-shebang/lists"}