nvim-surround

Add, change, and delete delimiters around text selections in Neovim.

1|Updated Oct 26, 2025
One-click install
npx skills add https://github.com/NeKon69/nvim-dot --skill nvim-surround
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nvim-surround
Source: https://github.com/NeKon69/nvim-dot/tree/main/.agents/skills/nvim-surround
Command: npx skills add https://github.com/NeKon69/nvim-dot --skill nvim-surround

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers quickly add, change, or delete surrounding characters or text (like quotes, brackets, or HTML tags) around selections in Neovim.

Core Features & Use Cases

  • Add Surroundings: Easily wrap text selections with specified characters (e.g., " for strings, ( for parentheses).
  • Change Surroundings: Modify existing surrounding characters to a new type.
  • Delete Surroundings: Remove surrounding characters from a selection.
  • Use Case: While writing code, you might select a variable name and want to quickly put double quotes around it. This Skill allows you to do that with a simple command.

Quick Start

Use the nvim-surround skill to change the surrounding quotes of the current visual selection to parentheses.

Frequently Asked Questions about nvim-surround

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add surrounding quotes or brackets to text in Neovim?

To add surroundings in Neovim, you can wrap text selections with specified characters like quotes or parentheses. This allows you to easily delimit variables or strings with a simple command during coding.

Can I change existing surrounding characters to a different delimiter type?

Yes, you can change existing surrounding characters to a new type. This modifies delimiters currently around your text selection, such as switching surrounding quotes to parentheses, using Lua functions.

What is the best way to delete surrounding HTML tags or brackets in Neovim?

Deleting surroundings in Neovim removes surrounding characters from a selection. You can delete delimiters like HTML tags, brackets, or quotes around text selections by integrating with the Neovim API.

Do I need Lua to manage text surroundings in the Neovim editor?

Managing text surroundings in Neovim uses Lua functions to facilitate operations like adding, changing, and deleting delimiters. The Skill integrates directly with Neovim's API for text manipulation and user input handling.

Why would I use a text manipulation skill for surrounding characters while coding?

A text manipulation skill for surrounding characters solves the problem of quickly wrapping, modifying, or removing delimiters like quotes, brackets, and HTML tags around selections without manual retyping.