# tpope/vim-surround

surround.vim: Delete/change/add parentheses/quotes/XML-tags/much more with ease

Repository: https://github.com/tpope/vim-surround
Canonical: https://ross.abutalabs.com/products/vim-surround
Homepage: https://www.vim.org/scripts/script.php?script_id=1697
Language: Vim Script
License Family: other
Last push: 2024-06-30T12:27:56+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": 6566, "days_push": 794, "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 14100, forks 448 (observed 2026-08-28T04:11:05.487269+00:00)

## What it is
A Vim plugin providing mappings to easily delete, change, and add 'surroundings' such as parentheses, brackets, quotes, and XML/HTML tags in pairs. It is a classic, widely used editor extension by Tim Pope.

## Use cases
- change quotes around text in vim
- delete surrounding html tags
- wrap a word in parentheses
- convert single quotes to double quotes
- add xml tags around visual selection
- surround a line with brackets

## When to choose
- you edit HTML/XML or code in Vim and frequently manipulate paired delimiters
- you want fast, mnemonic keybindings for adding, changing, or deleting surroundings
- you prefer a small, mature, dependency-free Vimscript plugin

## When to avoid
- you use Neovim and prefer a Lua-based alternative with treesitter text objects
- you rarely edit paired delimiters or tags
- you need an IDE or non-Vim editor

## Facets
- artifact type: plugin
- maturity: stable
- function: editor, developer-tools
- domain: text-editors, developer-tools
- platform: editor-plugin, cross-platform
- tags: vim, vim-plugin, surround, text-objects, editing

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

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:05.487269+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:12:49.133844+00:00, confidence not recorded.
  - readme: https://github.com/tpope/vim-surround (fetched 2026-08-28T04:11:05.487269+00:00, sha 24089305aea7)
  - homepage: https://www.vim.org/scripts/script.php?script_id=1697 (fetched 2026-08-29T08:06:36.719277+00:00, sha 295ed967d87c)
  - site_page: https://www.vim.org/about.php (fetched 2026-08-29T08:06:36.722006+00:00, sha 1bd2c1907ce5)
  - site_page: https://www.vim.org/docs.php (fetched 2026-08-29T08:06:36.723711+00:00, sha 438015e9e2e2)
  - site_page: http://www.vim.org/about.php (fetched 2026-08-29T08:06:36.726582+00:00, sha fbe78bde9535)
- Data as of 2026-08-30T08:39:29.467469+00:00.
