<story><title>Graphical Vim Cheatsheet</title><url>http://www.viemu.com/vi-vim-cheat-sheet.gif</url><text></text></story><parent_chain><item><author>tumult</author><text>Important VIM tip that cheatsheets never mention for some reason: text objects. First, remember these two things: a for a, and i for &apos;inner&apos;. &apos;daw&apos; deletes a word under the cursor. &apos;diw&apos; deletes the contents of a word (the &apos;inner&apos; of a word) under the cursor.&lt;p&gt;What? How is that useful?&lt;p&gt;&apos;das&apos; deletes a sentence under the cursor. &apos;dap&apos; deletes a paragraph under the cursor.&lt;p&gt;&apos;da{&apos; deletes the block of text that&apos;s currently surrounded by braces. &apos;ci(&apos; deletes the inner content that&apos;s surrounded by parentheses and puts you in insert mode. &apos;gqap&apos; reformats the contents of the paragraph under the cursor (&apos;gqip&apos; will end up leaving your cursor at the beginning of the paragraph instead of the end.)</text></item></parent_chain><comment><author>bostonvaulter2</author><text>Here&apos;s a great SO comment describing how to work with text objects:&lt;p&gt;&lt;a href=&quot;http://stackoverflow.com/questions/1218390/what-is-your-most-productive-shortcut-with-vim/1220118#1220118&quot; rel=&quot;nofollow&quot;&gt;http://stackoverflow.com/questions/1218390/what-is-your-most...&lt;/a&gt;</text></comment>
<story><title>Graphical Vim Cheatsheet</title><url>http://www.viemu.com/vi-vim-cheat-sheet.gif</url><text></text></story><parent_chain><item><author>tumult</author><text>Important VIM tip that cheatsheets never mention for some reason: text objects. First, remember these two things: a for a, and i for &apos;inner&apos;. &apos;daw&apos; deletes a word under the cursor. &apos;diw&apos; deletes the contents of a word (the &apos;inner&apos; of a word) under the cursor.&lt;p&gt;What? How is that useful?&lt;p&gt;&apos;das&apos; deletes a sentence under the cursor. &apos;dap&apos; deletes a paragraph under the cursor.&lt;p&gt;&apos;da{&apos; deletes the block of text that&apos;s currently surrounded by braces. &apos;ci(&apos; deletes the inner content that&apos;s surrounded by parentheses and puts you in insert mode. &apos;gqap&apos; reformats the contents of the paragraph under the cursor (&apos;gqip&apos; will end up leaving your cursor at the beginning of the paragraph instead of the end.)</text></item></parent_chain><comment><author>grayrest</author><text>I consider text objects and the f/t motions to be the core Vim editing motions. I&apos;m always annoyed that vim intros go through teaching the w/e/b motions when you can easily get by with f&amp;#60;space&amp;#62;/t&amp;#60;space&amp;#62;/T&amp;#60;space&amp;#62; and the search commands generalize to things like replacing the first part of a camelCase word (ctC) or the end of a string (ct&quot;).</text></comment>