{"id":20779742,"url":"https://github.com/openqasm/openqasm.vim","last_synced_at":"2026-03-08T08:39:08.232Z","repository":{"id":40540587,"uuid":"496691690","full_name":"openqasm/openqasm.vim","owner":"openqasm","description":"Vim plugin for OpenQASM 3","archived":false,"fork":false,"pushed_at":"2023-12-22T11:24:17.000Z","size":24,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-01-18T08:44:57.057Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openqasm.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":"2022-05-26T16:23:19.000Z","updated_at":"2024-05-30T15:44:26.000Z","dependencies_parsed_at":"2025-01-18T08:42:04.933Z","dependency_job_id":"b013b5c7-2ce1-4996-966f-08048f2bbd95","html_url":"https://github.com/openqasm/openqasm.vim","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/openqasm%2Fopenqasm.vim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openqasm%2Fopenqasm.vim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openqasm%2Fopenqasm.vim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openqasm%2Fopenqasm.vim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openqasm","download_url":"https://codeload.github.com/openqasm/openqasm.vim/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243120416,"owners_count":20239469,"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-17T13:29:27.723Z","updated_at":"2026-03-08T08:39:08.178Z","avatar_url":"https://github.com/openqasm.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openqasm.vim\n\nA Vim plugin for syntax highlighting of OpenQASM files.\n\n\u003cimg alt=\"Example syntax highlighting of an OpenQASM file with the solarized-dark color scheme\" src=\"https://user-images.githubusercontent.com/5968590/126172538-2863ad68-89da-4d43-b7f4-a9895586b70a.png\" width=343px /\u003e \u003cimg alt=\"Example syntax highlighting of an OpenQASM file with the solarized-light color scheme\" src=\"https://user-images.githubusercontent.com/5968590/126172543-ce9b23e3-5ba0-4ced-b233-25f4bc7c90c7.png\" width=343px /\u003e\n\n\n## Installation\n\n### [Vundle](https://github.com/VundleVim/Vundle.vim)\n\nAdd the line\n```vim\nPlugin 'openqasm/openqasm.vim'\n```\ninto your `.vimrc` between the `call vundle#begin()` and `call vundle#end()` lines, reload, and run `:PluginInstall`.\n\n### [vim-plug](https://github.com/junegunn/vim-plug)\n\nAdd the line\n```vim\nPlug 'openqasm/openqasm.vim'\n```\ninto your `.vimrc` between the `call plug#begin()` and `call plug#end()` lines, reload, and run `:PlugInstall`.\n\n### Bare Vim\n\nClone this repository somewhere locally with\n\n```bash\n$ cd \u003cplugins path\u003e\n$ git clone https://github.com/openqasm/openqasm.vim\n```\n\nThis does not need to be in the `.vim` directory.\nNow add the plugin's subdirectory to Vim's runtime path, by adding the following to your `.vimrc`:\n\n```vim\nset rtp+='\u003cplugins path\u003e/openqasm.vim'\n```\n\nReload `.vimrc` to load the plugin.\n\n\n\n## Usage\n\nAt present, this only provides syntax highlighting file for OpenQASM files, which automatically registers itself for all files with the name `*.qasm`.\nTo turn on syntax highlighting for another file (for example `stdgates.inc`), call\n```vim\n:set filetype=openqasm\n```\neither as a command, or as part of an autocommand.\n\nThe default highlighting groups are defined at the bottom of the file `syntax/openqasm.vim`.\nYou can override these in your own configuration files (`.vimrc`, etc) if you prefer different groupings.\n\nThe plugin attempts to determine the OpenQASM version from the required `OPENQASM \u003cversion\u003e;` statement at the top of the file, and falls back to OpenQASM 3.0 if this is unparseable (perhaps on multiple lines) or not present.\nYou can control the fallback value by setting\n```vim\nlet g:openqasm_version_fallback = 2.0\n```\nin your `.vimrc` file.\nYou can override all version checking with\n```vim\nlet g:openqasm_version_override = 2.0\n```\n\nFor full help, call\n```vim\n    :help openqasm\n```\n\n\n## Limitations\n\nNo attempt is made to highlight the arbitrary grammars present inside `defcal` blocks of OpenQASM 3.\nThis would be strongly dependent on the grammar file loaded by the `defcalgrammar` statement.\n\n\n## License\n\n`openqasm.vim` is licensed under the Apache 2.0 open-source license.\nSee the [`LICENSE` file in the root of this repository](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenqasm%2Fopenqasm.vim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenqasm%2Fopenqasm.vim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenqasm%2Fopenqasm.vim/lists"}