# google/vim-codefmt

Vim plugin for syntax-aware code formatting

Repository: https://github.com/google/vim-codefmt
Canonical: https://ross.abutalabs.com/products/vim-codefmt
Language: Vim Script
License: Apache-2.0
License Family: permissive
Topics: formatter, clang-format, js-beautify, vim
Last push: 2024-08-31T16:39:54+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": 4243, "days_push": 732, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1119, forks 102 (observed 2026-08-28T04:03:39.414285+00:00)

## What it is
A Vim plugin by Google that provides syntax-aware code formatting inside the editor, with built-in support for many external formatters like clang-format, gofmt, prettier, and Black. It exposes commands such as :FormatCode and :FormatLines and allows other plugins to register additional formatters.

## Use cases
- format code in vim without leaving the editor
- run clang-format on C++ files from vim
- format python with black inside vim
- auto-format buffers on save in vim
- format a range of lines in vim
- integrate gofmt and rustfmt into vim workflow

## When to choose
- you edit code in Vim/Neovim and want consistent formatting via established external tools
- you need formatting for many languages from a single plugin
- you want per-buffer control over auto-formatting

## When to avoid
- you use an LSP-based formatter setup or a formatter plugin like null-ls/ALE already
- you don't use Vim or Neovim
- you need formatting without external formatter binaries installed

## Facets
- artifact type: plugin
- maturity: active
- function: formatter, plugin-system, developer-tools
- domain: developer-tools, text-editors, version-control
- platform: editor-plugin, cli, cross-platform
- tags: vim, code-formatting, clang-format, prettier, gofmt, black, syntax-aware

## Member repositories
- google/vim-codefmt (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:39.414285+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-30T06:41:11.602861+00:00, confidence not recorded.
  - readme: https://github.com/google/vim-codefmt (fetched 2026-08-28T04:03:39.414285+00:00, sha 279b12ec139d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
