{"id":13414754,"url":"https://github.com/tpope/vim-surround","last_synced_at":"2025-05-11T16:33:37.080Z","repository":{"id":431020,"uuid":"51480","full_name":"tpope/vim-surround","owner":"tpope","description":"surround.vim: Delete/change/add parentheses/quotes/XML-tags/much more with ease","archived":false,"fork":false,"pushed_at":"2024-06-30T12:27:56.000Z","size":129,"stargazers_count":13726,"open_issues_count":136,"forks_count":443,"subscribers_count":129,"default_branch":"master","last_synced_at":"2025-04-23T09:45:27.585Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.vim.org/scripts/script.php?script_id=1697","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"silverstripe-australia/silverstripe-sitemap","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tpope.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"tpope"}},"created_at":"2008-09-11T01:00:16.000Z","updated_at":"2025-04-23T01:45:51.000Z","dependencies_parsed_at":"2024-11-25T02:52:19.400Z","dependency_job_id":null,"html_url":"https://github.com/tpope/vim-surround","commit_stats":{"total_commits":111,"total_committers":20,"mean_commits":5.55,"dds":"0.21621621621621623","last_synced_commit":"3d188ed2113431cf8dac77be61b842acb64433d9"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Fvim-surround","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Fvim-surround/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Fvim-surround/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Fvim-surround/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpope","download_url":"https://codeload.github.com/tpope/vim-surround/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253595635,"owners_count":21933430,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T21:00:34.977Z","updated_at":"2025-05-11T16:33:37.053Z","avatar_url":"https://github.com/tpope.png","language":"Vim Script","readme":"# surround.vim\n\nSurround.vim is all about \"surroundings\": parentheses, brackets, quotes,\nXML tags, and more.  The plugin provides mappings to easily delete,\nchange and add such surroundings in pairs.\n\nIt's easiest to explain with examples.  Press `cs\"'` inside\n\n    \"Hello world!\"\n\nto change it to\n\n    'Hello world!'\n\nNow press `cs'\u003cq\u003e` to change it to\n\n    \u003cq\u003eHello world!\u003c/q\u003e\n\nTo go full circle, press `cst\"` to get\n\n    \"Hello world!\"\n\nTo remove the delimiters entirely, press `ds\"`.\n\n    Hello world!\n\nNow with the cursor on \"Hello\", press `ysiw]` (`iw` is a text object).\n\n    [Hello] world!\n\nLet's make that braces and add some space (use `}` instead of `{` for no\nspace): `cs]{`\n\n    { Hello } world!\n\nNow wrap the entire line in parentheses with `yssb` or `yss)`.\n\n    ({ Hello } world!)\n\nRevert to the original text: `ds{ds)`\n\n    Hello world!\n\nEmphasize hello: `ysiw\u003cem\u003e`\n\n    \u003cem\u003eHello\u003c/em\u003e world!\n\nFinally, let's try out visual mode. Press a capital V (for linewise\nvisual mode) followed by `S\u003cp class=\"important\"\u003e`.\n\n    \u003cp class=\"important\"\u003e\n      \u003cem\u003eHello\u003c/em\u003e world!\n    \u003c/p\u003e\n\nThis plugin is very powerful for HTML and XML editing, a niche which\ncurrently seems underfilled in Vim land.  (As opposed to HTML/XML\n*inserting*, for which many plugins are available).  Adding, changing,\nand removing pairs of tags simultaneously is a breeze.\n\nThe `.` command will work with `ds`, `cs`, and `yss` if you install\n[repeat.vim](https://github.com/tpope/vim-repeat).\n\n## Installation\n\nInstall using your favorite package manager, or use Vim's built-in package\nsupport:\n\n    mkdir -p ~/.vim/pack/tpope/start\n    cd ~/.vim/pack/tpope/start\n    git clone https://tpope.io/vim/surround.git\n    vim -u NONE -c \"helptags surround/doc\" -c q\n\n## FAQ\n\n\u003e How do I surround without adding a space?\n\nOnly the opening brackets—`[`, `{`, and `(`—add a space.  Use a closing\nbracket, or the `b` (`(`) and `B` (`{`) aliases.\n\n## Contributing\n\nSee the contribution guidelines for\n[pathogen.vim](https://github.com/tpope/vim-pathogen#readme).\n\n## Self-Promotion\n\nLike surround.vim?  Star the repository on\n[GitHub](https://github.com/tpope/vim-surround) and vote for it on\n[vim.org](https://www.vim.org/scripts/script.php?script_id=1697).\n\nLove surround.vim?  Follow [tpope](http://tpo.pe/) on\n[GitHub](https://github.com/tpope) and\n[Twitter](http://twitter.com/tpope).\n\n## License\n\nCopyright (c) Tim Pope.  Distributed under the same terms as Vim itself.\nSee `:help license`.\n","funding_links":["https://github.com/sponsors/tpope"],"categories":["What's in it?","Editor Utilities","Install","Vim Script","vim Things","Tools","Vim script"],"sub_categories":["vim","Installing","Few Shortcuts","Plugins","Editing"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpope%2Fvim-surround","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpope%2Fvim-surround","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpope%2Fvim-surround/lists"}