title: How to search and replace globally, starting from the cursor position and wrapping around the end of file, in a single command invocation in Vim?
body: <p>When I search with the <code>/</code> Normal-mode command:</p>
  <pre><code>/\vSEARCHTERM
  </code></pre>
  <p>Vim starts the search from the cursor position and continues downwards, wrapping around to the top. However, when I search and replace using the <code>:substitute</code> command:</p>
  <pre><code>:%s/\vBEFORE/AFTER/gc
  </code></pre>
  <p>Vim starts at the top of the file, instead.</p>
  <p>Is there a way to make Vim perform search and replace starting from the cursor position <strong>and</strong> wrapping around to the top once it reaches the end?</p>