{"id":20032210,"url":"https://github.com/weakish/rcshell.vim","last_synced_at":"2025-03-02T05:25:35.267Z","repository":{"id":24728017,"uuid":"28140195","full_name":"weakish/rcshell.vim","owner":"weakish","description":"syntax highlight file for the rc shell scripting language","archived":false,"fork":false,"pushed_at":"2024-06-24T05:39:53.000Z","size":20,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-12T18:11:40.501Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.vim.org/scripts/script.php?script_id=2880","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/weakish.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":"2014-12-17T14:16:53.000Z","updated_at":"2024-10-01T01:46:37.000Z","dependencies_parsed_at":"2024-06-24T06:42:46.778Z","dependency_job_id":"49ea2782-e5af-479f-805f-745ebdc2b8ae","html_url":"https://github.com/weakish/rcshell.vim","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weakish%2Frcshell.vim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weakish%2Frcshell.vim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weakish%2Frcshell.vim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weakish%2Frcshell.vim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weakish","download_url":"https://codeload.github.com/weakish/rcshell.vim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241463245,"owners_count":19967011,"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-13T09:36:19.650Z","updated_at":"2025-03-02T05:25:35.248Z","avatar_url":"https://github.com/weakish.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a syntax file for the rc shell scripting language.\n\n## Compatibility\n\nFor unix (not plan9) users, there are two slightly different versions of rc available.\n\nOne is [plan9port][plan9port] and [9base][9base]'s version and the other is Byron Rakitzis' (as packaged by Debian and other *nix software distribution).\n\nThis syntax file is compatible with both versions.\n\n[plan9port]: https://github.com/9fans/plan9port\n[9base]: http://tools.suckless.org/9base\n\nThis syntax is comptible with Vim 5.7-6.4.\n\n## Install\n\nIf you use [Vundle](https://github.com/gmarik/vundle), add the following line to your `~/.vimrc`:\n\n```vim\nPlugin 'weakish/rcshell.vim'\n```\n\nThen run inside Vim:\n\n```vim\n:so ~/.vimrc\n:PluginInstall\n```\n\nIf you use [Pathogen](https://github.com/tpope/vim-pathogen), do this:\n\n```sh\ncd ~/.vim/bundle\ngit clone https://github.com/weakish/rcshell.vim.git\n```\n\nIf you are not using any package manager, download the [tarball](https://github.com/weakish/rcshell.vim/archive/master.tar.gz) and do this:\n\n```sh\ncd ~/.vim\ntar --strip=1 -zxf path/to/master.tar.gz\n```\n\n## Configuration\n\nBy default, `.rcrc*`, `rcrc` and files starting with an rc shebang (`#!/something/.../rc`) will be highlighted.\n\n### Add rc shell syntax to other file extensions\n\nIf you want to add other file extensions, you can add the following lines in `.vimrc`:\n\n```vim\nau BufRead,BufNewFile *.your_extension set filetype=rcshell\n```\n\nFor example, you could write\n\n```\nau BufRead,BufNewFile *.rc set filetype=rcshell\n```\n\nto catch all files with an `.rc` extension. \n\n### Use another syntax for files which this extension detects.\n\nIf you want to use `.rcrc*`, `rcrc` or `*.rc` for another file type, you can specify the file type in `.vimrc`.\n\nFor example, if you want to use `.rc` for M$ Resource file:\n\n```vim\nau BufRead,BufNewFile *.rc set filetype=rc\n```\n\n(Confusingly, `rc` is the name of the default filetype in vim.)\n\n### Other\n\nYou can also use `setfiletype` (without a space) to set the filetype if it has not already been set:\n\n```vim\nau BufRead,BufNewFile *.your_extension setfiletype rcshell\n```\nSee `:help filetype` and `:help setfiletype` for more information.\n\n### Disable this syntax file.\n\nIf you want to disable this syntax file, add the following line in your `.vimrc`:\n\n```vim\nlet g:loaded_rcshell = 1\n```\n\n## Repository\n\n- **Repository:** http://github.com/weakish/rcshell.vim\n- **Issue tracker:** https://github.com/weakish/rcshell.vim/issues\n\n## Credit\n\nThis is based on [Andy Spencer][andy]'s work for the plan9 rc shell.\nThere is a minor trade off for maintain compatibility with two versions of rc mentioned above:\nless powerful `(ba)sh like substitution` syntax error detection.\n\n[andy]: https://github.com/Andy753421\n\n## License\n\nPublic domain.\n\n## Tips\n\nThis is not related to the syntax directly, but I think users who code with the rc shell script in Vim may be interested:\n\nIf you want to use `rc` as the embedded shell in vim,\nadd the following lines to your .vimrc:\n\n```vim\nset shell=/usr/bin/rc\\ -l\n\"  or /bin/rc or /usr/local/bin/rc or /opt/local /bin/rc, etc\nset shellcmdflag=-c\nset shellpipe=\u003e[2=1]\\|\\ tee\nset shellredir=\u003e%s\\ \u003e[2=1]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweakish%2Frcshell.vim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweakish%2Frcshell.vim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweakish%2Frcshell.vim/lists"}