<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Vim-Surround on Cheat Sheet</title><link>/tags/vim-surround/</link><description>Recent content in Vim-Surround on Cheat Sheet</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sun, 24 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="/tags/vim-surround/index.xml" rel="self" type="application/rss+xml"/><item><title>vim-surround</title><link>/dotfiles/vim/plugin/vim-surround/</link><pubDate>Sun, 24 May 2026 00:00:00 +0000</pubDate><guid>/dotfiles/vim/plugin/vim-surround/</guid><description>&lt;h1 id="vim-surround"&gt;&lt;code&gt;vim-surround&lt;/code&gt;&lt;a class="anchor" href="#vim-surround"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;&lt;a href="https://github.com/tpope/vim-surround"&gt;GitHub Repository&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="description"&gt;Description&lt;a class="anchor" href="#description"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Manage surrounding characters like quotes, brackets, and HTML tags.&lt;/p&gt;
&lt;h3 id="main-usage"&gt;Main Usage&lt;a class="anchor" href="#main-usage"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;cs&amp;lt;old&amp;gt;&amp;lt;new&amp;gt;&lt;/code&gt;&lt;/strong&gt;: Change surrounding &lt;code&gt;&amp;lt;old&amp;gt;&lt;/code&gt; to &lt;code&gt;&amp;lt;new&amp;gt;&lt;/code&gt; (eg. &lt;code&gt;cs&amp;quot;'&lt;/code&gt; to change double quotes to single).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;ds&amp;lt;char&amp;gt;&lt;/code&gt;&lt;/strong&gt;: Delete surrounding &lt;code&gt;&amp;lt;char&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;ys&amp;lt;motion&amp;gt;&amp;lt;char&amp;gt;&lt;/code&gt;&lt;/strong&gt;: Add surrounding &lt;code&gt;&amp;lt;char&amp;gt;&lt;/code&gt; to the target motion (eg. &lt;code&gt;ysiw&amp;quot;&lt;/code&gt; to surround a word with double quotes).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;S&amp;lt;char&amp;gt;&lt;/code&gt; (Visual Mode)&lt;/strong&gt;: Surround selection with &lt;code&gt;&amp;lt;char&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;</description></item></channel></rss>