vim-surround is a deceptively small plugin that makes editing “surroundings” (quotes, brackets, tags, and more) feel natural and instantaneous. It turns the repetitive chores of adding, changing, or deleting delimiters into short, mnemonic commands that work with normal Vim text objects. The key insight is that surroundings are structural: once Vim understands the bounds, operations become predictable and composable with your existing motions. The plugin handles common cases like quotes and parentheses as well as HTML/XML tags, making it equally useful in prose and code. Because the commands are orthogonal to movements, you can target words, sentences, or visual selections without learning new modes. Over time, vim-surround becomes muscle memory, reducing cognitive load and helping you keep your hands on the keyboard during structural edits.

Features

  • Add, change, and delete surroundings with concise commands
  • Works with Vim text objects and motions you already know
  • Supports quotes, brackets, parentheses, and HTML/XML tags
  • Operates on words, sentences, or visual selections consistently
  • Intuitive, mnemonic mappings that become muscle memory
  • Lightweight, fast, and compatible with most editing workflows

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow vim-surround

vim-surround Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of vim-surround!

Additional Project Details

Registered

2025-10-13