title: Vim search and move the searched string
body: <p>There is a similar question on moving the searched string to the end of the file or to the beginning of file</p>
  
  <pre><code>:g /&lt;pattern&gt;/m0 -&gt; beginning of the file.
  :g /&lt;pattern&gt;/m$ -&gt; beginning of the file.
  </code></pre>
  
  <p>Is there way to search and move to the beginning of a line. Any tutorial link to learn this ?</p>
  
  <p>Thank you </p>