{"id":13898850,"url":"https://github.com/lifepillar/vim-cheat40","last_synced_at":"2026-03-19T12:03:44.270Z","repository":{"id":37743247,"uuid":"60428399","full_name":"lifepillar/vim-cheat40","owner":"lifepillar","description":"A Vim cheat sheet that makes sense, inside Vim!","archived":false,"fork":false,"pushed_at":"2023-12-19T19:27:32.000Z","size":28,"stargazers_count":250,"open_issues_count":1,"forks_count":21,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-01-11T14:48:25.484Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lifepillar.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}},"created_at":"2016-06-04T20:11:47.000Z","updated_at":"2025-01-05T01:56:20.000Z","dependencies_parsed_at":"2024-01-23T07:49:31.636Z","dependency_job_id":null,"html_url":"https://github.com/lifepillar/vim-cheat40","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lifepillar%2Fvim-cheat40","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lifepillar%2Fvim-cheat40/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lifepillar%2Fvim-cheat40/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lifepillar%2Fvim-cheat40/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lifepillar","download_url":"https://codeload.github.com/lifepillar/vim-cheat40/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241263294,"owners_count":19936055,"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-08-06T18:04:29.371Z","updated_at":"2026-03-19T12:03:44.265Z","avatar_url":"https://github.com/lifepillar.png","language":"Vim Script","funding_links":[],"categories":["Cheatsheets","Vim Script"],"sub_categories":[],"readme":"\u003e [!IMPORTANT]\n\u003e **As of March 11, 2026, this repository is on [Codeberg](https://codeberg.org/lifepillar/vim-cheat40).**\n\n# Cheat40: a cheat sheet for Vim\n\nCheat40 is a foldable extensible 40-column cheat sheet that you may open in Vim\nby pressing `\u003cleader\u003e?` (the mapping is customizable, of course). Mappings and\ncommands are organized like the menus of a GUI app: there is a File section, an\nEdit section, a View section, and so on. For each item the description comes\nfirst, because one typically wants to find how to execute a task, not what the\nmeaning of a key sequence is (there is Vim's help for that). Syntax coloring and\nthe use of `conceal` keep the cheat sheet clutter-free and easy to read.\n\n\n## Installation\n\nIf your Vim supports packages (`echo has('packages')` prints `1`), I strongly\nrecommend that you use them. Just clone this repo inside `pack/*/start`, e.g.,\n\n    cd ~/.vim\n    git clone https://github.com/lifepillar/vim-cheat40.git pack/bundle/start/cheat40\n\nOtherwise, use your preferred installation method.\n\n\n## Extending the cheat sheet\n\nYou may extend the cheat sheet by putting one or more files called `cheat40.txt`\nanywhere in your `runtimepath` (e.g., in `~/.vim`). Cheat40 searches\n`runtimepath` for such files and concatenates their content. This allows plugin\ndevelopers to provide a cheat sheet for their plugins by putting a `cheat40.txt`\nfile in the top folder of their plugins.\n\nIf you do not want to use the default cheat sheet that comes with this plugin,\nset the following variable in your `.vimrc`:\n\n    let g:cheat40_use_default = 0\n\nIn this case, I recommend that you copy `cheat40.txt` into your `.vim` folder\nand modify it to suit your needs.\n\nYou can also add filetype-specific cheats, by adding `cheat40_\u003cfiletype\u003e.txt`\nfiles in your `runtimepath`. If such files are present, they'll be used instead\nof the builtin documentation and for that filetype, normal `cheat40.txt` files\nwill also be ignored.\n\nThe syntax of a cheat sheet is very simple:\n\n- foldable sections use Vim's default markers (`{{{` and `}}}`) (see `:h\n  fold-marker`);\n- sections of the form `About … {{{ … }}}` are interpreted as block comments;\n- lines starting with a `#` are interpreted as line comments;\n- each line, except for comments and section markers, should be 40 columns wide\n  (comments and section markers may be shorter than that);\n- each item consists of a description, a key sequence, and a label;\n- the description must fit in columns 1–25 (long descriptions may be split into\n  several lines);\n- the key sequence and the label must fit in columns 26–40 (long key sequences\n  should be split into several lines);\n- the label is a right-justified sequence of one or more characters (e.g., `N`\n  for Normal mode, `I` for Insert mode, and so on).\n\nSee the cheat sheet inside the plugin for the details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flifepillar%2Fvim-cheat40","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flifepillar%2Fvim-cheat40","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flifepillar%2Fvim-cheat40/lists"}