title: vim autocmd hook after performing a search in the text?
body: <p>I had a look at the list of events autocmd can handle, but I could not find one about search queries.</p>
  
  <p>What I would like to do is to add some custom behavior after each text search is performed. I was able to remap the <code>*</code> command with this command:</p>
  
  <pre><code>map * *&lt;F11&gt;
  </code></pre>
  
  <p>In this case I mapped <code>&lt;F11&gt;</code> to a <code>:call My_function()</code> which will do something with the search pattern contained in <code>@/</code>.</p>
  
  <p>But I still need to add my custom behavior to the <code>/</code> command, which is more complicated, as before it's completed it's getting the input search pattern.</p>
  
  <p>Do you have any hint on how to proceed? Can I use <code>autocmd</code>? Or maybe is there a <code>map</code> trick?</p>