# tpope/vim-commentary

commentary.vim: comment stuff out

Repository: https://github.com/tpope/vim-commentary
Canonical: https://ross.abutalabs.com/products/vim-commentary
Homepage: http://www.vim.org/scripts/script.php?script_id=3695
Language: Vim Script
License Family: other
Last push: 2024-10-22T02:05:39+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5492, "days_push": 681, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6156, forks 211 (observed 2026-08-28T04:09:36.698803+00:00)

## What it is
commentary.vim is a minimalist Vim plugin that adds comment toggling via the gc operator, supporting motions, visual selections, counts, and a :Commentary command. It relies on Vim's 'commentstring' setting and weighs in at under 100 lines of code.

## Use cases
- comment out a line in vim
- toggle comments on a code block
- uncomment lines in vim
- comment out a paragraph with a motion
- add commenting support to any filetype via commentstring

## When to choose
- you use Vim or Neovim and want fast, idiomatic commenting via motions and text objects
- you prefer a tiny, minimal plugin over heavyweight alternatives
- you want commenting that works with any filetype by setting 'commentstring'

## When to avoid
- you use a different editor like VS Code or Emacs
- you need advanced commenting features like block comments with custom formatting or language auto-detection beyond 'commentstring'

## Facets
- artifact type: plugin
- maturity: stable
- function: editor, developer-tools
- domain: text-editors, developer-tools
- platform: editor-plugin, cli, cross-platform
- tags: vim, vim-plugin, commenting, code-commenting, editor-plugin, minimalist

## Member repositories
- tpope/vim-commentary (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:36.698803+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:47:30.164334+00:00, confidence not recorded.
  - readme: https://github.com/tpope/vim-commentary (fetched 2026-08-28T04:09:36.698803+00:00, sha 70728efa8fd0)
  - homepage: http://www.vim.org/scripts/script.php?script_id=3695 (fetched 2026-08-29T08:44:21.799677+00:00, sha 3713f5076a40)
  - site_page: https://www.vim.org/about.php (fetched 2026-08-29T08:44:21.808814+00:00, sha 1bd2c1907ce5)
  - site_page: https://www.vim.org/docs.php (fetched 2026-08-29T08:44:21.829086+00:00, sha 438015e9e2e2)
  - site_page: http://www.vim.org/about.php (fetched 2026-08-29T08:44:21.831467+00:00, sha fbe78bde9535)
- Data as of 2026-08-30T08:39:29.467469+00:00.
