{"id":13485258,"url":"https://github.com/tpope/vim-commentary","last_synced_at":"2025-04-14T11:09:46.247Z","repository":{"id":38342575,"uuid":"2238035","full_name":"tpope/vim-commentary","owner":"tpope","description":"commentary.vim: comment stuff out","archived":false,"fork":false,"pushed_at":"2024-10-22T02:05:39.000Z","size":34,"stargazers_count":6013,"open_issues_count":30,"forks_count":213,"subscribers_count":61,"default_branch":"master","last_synced_at":"2025-04-14T11:09:43.623Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.vim.org/scripts/script.php?script_id=3695","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/tpope.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":"CONTRIBUTING.markdown","funding":".github/FUNDING.yml","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},"funding":{"github":"tpope"}},"created_at":"2011-08-20T06:36:14.000Z","updated_at":"2025-04-14T00:51:16.000Z","dependencies_parsed_at":"2024-04-08T17:42:47.760Z","dependency_job_id":"ca2b2673-e0ac-42ff-9bd7-cbeb0fa024c7","html_url":"https://github.com/tpope/vim-commentary","commit_stats":{"total_commits":61,"total_committers":10,"mean_commits":6.1,"dds":"0.14754098360655743","last_synced_commit":"c4b8f52cbb7142ec239494e5a2c4a512f92c4d07"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Fvim-commentary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Fvim-commentary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Fvim-commentary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Fvim-commentary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpope","download_url":"https://codeload.github.com/tpope/vim-commentary/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248868766,"owners_count":21174758,"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-07-31T17:01:53.183Z","updated_at":"2025-04-14T11:09:46.202Z","avatar_url":"https://github.com/tpope.png","language":"Vim Script","funding_links":["https://github.com/sponsors/tpope"],"categories":["Vim Script","Vim script","Included Plugins","Plugins"],"sub_categories":["Install for multiple users"],"readme":"# commentary.vim\n\nComment stuff out.  Use `gcc` to comment out a line (takes a count),\n`gc` to comment out the target of a motion (for example, `gcap` to\ncomment out a paragraph), `gc` in visual mode to comment out the selection,\nand `gc` in operator pending mode to target a comment.  You can also use\nit as a command, either with a range like `:7,17Commentary`, or as part of a\n`:global` invocation like with `:g/TODO/Commentary`. That's it.\n\nI wrote this because 5 years after Vim added support for mapping an\noperator, I still couldn't find a commenting plugin that leveraged that\nfeature (I overlooked\n[tcomment.vim](https://github.com/tomtom/tcomment_vim)).  Striving for\nminimalism, it weighs in at under 100 lines of code.\n\nOh, and it uncomments, too.  The above maps actually toggle, and `gcgc`\nuncomments a set of adjacent commented lines.\n\n## Installation\n\nInstall using your favorite package manager, or use Vim's built-in package\nsupport:\n\n    mkdir -p ~/.vim/pack/tpope/start\n    cd ~/.vim/pack/tpope/start\n    git clone https://tpope.io/vim/commentary.git\n    vim -u NONE -c \"helptags commentary/doc\" -c q\n\nMake sure this line is in your vimrc, if it isn't already:\n\n    filetype plugin indent on\n\n## FAQ\n\n\u003e My favorite file type isn't supported!\n\nRelax!  You just have to adjust `'commentstring'`:\n\n    autocmd FileType apache setlocal commentstring=#\\ %s\n\n## Self-Promotion\n\nLike commentary.vim? Follow the repository on\n[GitHub](https://github.com/tpope/vim-commentary) and vote for it on\n[vim.org](http://www.vim.org/scripts/script.php?script_id=3695).  And if\nyou're feeling especially charitable, follow [tpope](http://tpo.pe/) on\n[Twitter](http://twitter.com/tpope) and\n[GitHub](https://github.com/tpope).\n\n## License\n\nCopyright (c) Tim Pope.  Distributed under the same terms as Vim itself.\nSee `:help license`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpope%2Fvim-commentary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpope%2Fvim-commentary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpope%2Fvim-commentary/lists"}