title: Unable to replace a space with a new line in Vim
body: <p>I know the <a href="https://stackoverflow.com/questions/350661/vim-n-vs-r">thread</a>.</p>
  
  <p>I run</p>
  
  <pre><code>:%s/ /s/\n/g
  </code></pre>
  
  <p>I get </p>
  
  <pre><code>E488: Trailing characters
  </code></pre>
  
  <p><strong>2nd example</strong></p>
  
  <p>I run</p>
  
  <pre><code>:%s/ /\n/g
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>text^@text
  </code></pre>
  
  <p>I run the same codes also with the following settings separetaly</p>
  
  <pre><code>set fileformat=unix
  </code></pre>
  
  <p>and </p>
  
  <pre><code>set fileformat=dos
  </code></pre>
  
  <p><strong>How can you replace with a new line in Vim?</strong></p>