title: How to create search shortcut in vim
body: <p>Most of the time I do some regular search like anything that starting with <code>def</code>,it should  take my cursor to that place, so  <code>/def &lt;search character&gt;</code> . I am thinking to create some shortcut. </p>
  
  <p>I tried doing this </p>
  
  <pre><code>command # /def
  </code></pre>
  
  <p>with a hope that if I do <kbd>ESC</kbd><kbd>#</kbd> it will type <code>/def&lt;space&gt;</code>, but it doesn't. </p>
  
  <p>It is throwing error </p>
  
  <pre><code>E182: Invalid command name
  </code></pre>
  
  <p>How can i do that ? </p>