title: Bash-like code completion in vim?
body: <p>I'm currently using superTab for completions in Vim. However, I'd like the completions to be more like bash. For example, if I'm typing</p>
  
  <pre><code>st
  </code></pre>
  
  <p>and the possible completions are</p>
  
  <pre><code>struct, string
  </code></pre>
  
  <p>I'd like it to be completed to</p>
  
  <pre><code>str 
  </code></pre>
  
  <p>if I press tab, and ideally display a menu of possible completions.</p>
  
  <p>Plugins are OK.</p>
  
  <p>EDIT: completeopt+=menu, longest does most of what I want, but after the menu pops up and I narrow it down some, pressing tab again does a full completion instead of giving the next longest common prefix.</p>