title: Smart Wrap in Vim
body: <p>I have been wondering if Vim has the capability to smart wrap lines of code, so that it keeps the same indentation as the line that it is indenting. I have noticed it on some other text editor, such as e-text editor, and found that it helped me to comprehend what I'm looking at easier.</p>
  
  <p>For example rather than</p>
  
  <pre><code>&lt;p&gt;
      &lt;a href="http://www.example.com"&gt;
          This is a bogus link, used to demonstrate
  an example
      &lt;/a&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>it would appear as </p>
  
  <pre><code>&lt;p&gt;
      &lt;a href="somelink"&gt;
          This is a bogus link, used to demonstrate
          an example
      &lt;/a&gt;
  &lt;/p&gt;
  </code></pre>