title: Turning off auto indent when pasting text into vim
body: <p>I am making the effort to learn Vim.</p>
  
  <p>When I paste code into my document from the clipboard, I get extra spaces at the start of each new line:</p>
  
  <pre><code>line
    line
      line
  </code></pre>
  
  <p>I know you can turn off auto indent but I can't get it to work because I have some other settings conflicting or something (which look pretty obvious in my .vimrc but don't seem to matter when I take them out). </p>
  
  <p>How do I turn off auto indenting when I paste code but still have vim auto indent when I am writing code?  Here is my <code>.vimrc</code> file:</p>
  
  <pre><code>set expandtab  
  set tabstop=2  
  set shiftwidth=2  
  set autoindent  
  set smartindent  
  set bg=dark  
  set nowrap  
  </code></pre>