I was all over the Internet trying to find a way to get VIM to complete code like PyDev. It doesn't seem like it's possible!
- I tried to use the omnicompletion suggested here: http://blog.dispatched.ch/2009/05/24/vim-as-python-ide/ .
-I tried several add-ons to alleviate the problem, no one works.
The "omnicomplete" functionality is NOT what I'm looking for. It just takes all the words in the file you're working on, and uses it to try and complete what I'm doing. For example, if I wrote:
import numpy a_single_array = range(100) np.a
He would spit out "a_single_array" as a possible conclusion, but this is absurd! This is not a valid termination for "numpy.a ..."
What is the problem? All add-ons must do is launch dir (the job you want to find) from the folder you are in, and then filter the output! It can't be that hard! (I suppose you will also need to read the file you are currently editing and filter it to also note the name changes ... but this is pretty much!)
Speaking of how easy it would be ... if nothing was done, I was thinking of writing the script itself! Any guides on how to do this?
Garrett berg
source share