{"id":31333361,"url":"https://github.com/gn0/vim-cheatsheet","last_synced_at":"2025-09-26T01:53:17.124Z","repository":{"id":305261715,"uuid":"1022409590","full_name":"gn0/vim-cheatsheet","owner":"gn0","description":"Plugin for toggling a popup window with a buffer-specific cheatsheet","archived":false,"fork":false,"pushed_at":"2025-07-19T02:50:58.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-19T07:51:48.605Z","etag":null,"topics":["vim"],"latest_commit_sha":null,"homepage":"","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gn0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING.txt","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,"zenodo":null}},"created_at":"2025-07-19T02:49:12.000Z","updated_at":"2025-07-19T02:53:12.000Z","dependencies_parsed_at":"2025-07-19T07:51:51.767Z","dependency_job_id":null,"html_url":"https://github.com/gn0/vim-cheatsheet","commit_stats":null,"previous_names":["gn0/vim-cheatsheet"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/gn0/vim-cheatsheet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gn0%2Fvim-cheatsheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gn0%2Fvim-cheatsheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gn0%2Fvim-cheatsheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gn0%2Fvim-cheatsheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gn0","download_url":"https://codeload.github.com/gn0/vim-cheatsheet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gn0%2Fvim-cheatsheet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277009873,"owners_count":25744543,"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","status":"online","status_checked_at":"2025-09-25T02:00:09.612Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["vim"],"created_at":"2025-09-26T01:53:16.313Z","updated_at":"2025-09-26T01:53:17.113Z","avatar_url":"https://github.com/gn0.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vim-cheatsheet\n\nA Vim/Neovim plugin that toggles a popup window with custom content that you set for the buffer.\n\nMotivating use case: forgetting whether `$\u003c` or `$^` is the variable that contains all prerequisites of a recipe in a [Makefile](https://www.gnu.org/software/make/manual/html_node/Introduction.html).\nWith vim-cheatsheet, I can toggle a reminder when I am editing a Makefile:\n\n```vim\nautocmd FileType make\n            \\ let b:cheatsheet_title = \"Makefile reminders\" |\n            \\ let b:cheatsheet_lines = [\n            \\   \"$\u003c  first prerequisite\",\n            \\   \"$^  all prerequisites\",\n            \\ ]\n```\n\n![Personal cheatsheet in Makefile buffers](./screenshot.png)\n\nBy default, the toggle switch is mapped to `\u003cLeader\u003eC`.\nYou can override this by setting `g:cheatsheet_no_mappings`:\n\n```vim\nlet g:cheatsheet_no_mappings = v:true\n\n\" Bind the toggle to `g?` instead:\nnmap \u003csilent\u003e g? \u003cPlug\u003eToggleCheatsheet\n```\n\n## Installation\n\nUse your Vim package manager, or install it manually in Vim:\n\n```\n$ mkdir -p ~/.vim/pack/gn0/start\n$ cd ~/.vim/pack/gn0/start\n$ git clone https://github.com/gn0/vim-cheatsheet.git\n$ vim -u NONE -c \"helptags vim-cheatsheet/doc\" -c q\n```\n\nOr in Neovim:\n\n```\n$ mkdir -p ~/.config/nvim/pack/gn0/start\n$ cd ~/.config/nvim/pack/gn0/start\n$ git clone https://github.com/gn0/vim-cheatsheet.git\n$ nvim -u NONE -c \"helptags vim-cheatsheet/doc\" -c q\n```\n\n## License\n\nvim-cheatsheet is distributed under [CC0](https://creativecommons.org/public-domain/cc0/).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgn0%2Fvim-cheatsheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgn0%2Fvim-cheatsheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgn0%2Fvim-cheatsheet/lists"}