title: Why is \r a newline for Vim?
body: <p>From question <em><a href="https://stackoverflow.com/questions/71323/how-to-replace-a-character-for-a-newline-in-vim">How to replace a character for a newline in Vim?</a></em>. You have to use \r when replacing text for a newline, like this</p>
  
  <pre><code>:%s/%/\r/g
  </code></pre>
  
  <p>But when replacing end of lines and newlines for a character, you can do it like:</p>
  
  <pre><code>:%s/\n/%/g 
  </code></pre>
  
  <p>What section of the manual documents these behaviors, and what's the reasoning behind them?</p>