title: introspective code completion with VIM? ... or other lightweight editor with this feature?
body: <p>I've been all over the web trying to find a way to get VIM to have code completion similar to PyDev.  It doesn't seem like it is possible!  </p>
  
  <p>-I have tried to use the omnicompletion suggested at this link: <a href="http://blog.dispatched.ch/2009/05/24/vim-as-python-ide/" rel="noreferrer">http://blog.dispatched.ch/2009/05/24/vim-as-python-ide/</a> .  </p>
  
  <p>-I have tried several addons to alleviate the problem, none work.</p>
  
  <p>The "omnicomplete" functionality is NOT what I am looking for.  It just takes all the words in the file you are working on and uses those to try and complete what I am doing.  For example if I wrote:</p>
  
  <pre><code>import numpy
  a_single_array = range(100)
  np.a#[then I hit cntrl+n to code complete]
  </code></pre>
  
  <p>It would spit out "a_single_array" as a possible completion -- but that is absurd!  That is not a valid completion for "numpy.a ..."</p>
  
  <p>What is the issue here?  All the addon would have to do is run a dir(work you want to find) from the folder you are in and then filter the output!  This cannot be that difficult!  (I suppose you would also have to read the file you are currently editing and filter that as well to take note of name changes... but that's pretty much it!)</p>
  
  <p>Speaking of how easy it would be... if there isn't anything already made, I was thinking of writing the script myself!  Any guides on how to do THAT?</p>