python omnicompletion in vim not working
Question: I am trying to use vim on my python journey, based on [this
guide](http://blog.dispatched.ch/2009/05/24/vim-as-python-ide/)

I think I have the same problem as [a paid
nerd](http://stackoverflow.com/questions/2084875/vims-omnicompletion-with-
python-just-doesnt-work) but since he didn't find a solution I am posting
again here.

For some reason I can't get omnicompletion to work in vim, with python. I have
installed the fabolous
[R-plugin](http://www.vim.org/scripts/script.php%3Fscript_id%3D2628) and built
the tags list. So I get omnicompletion with R.

But not for python. A few observations:

  1. `:echo &omnifunc` prints `pythoncomplete#Complete`.
  2. the `.vim/doc/tags` file has R tags, but no python (but this is because python is supported by default right?)
  3. If I do `import math` in my `.py` file I can autocomplete eg. `ma` to `math.` but no methods are found? 

So - in conclusion i am really baffeled :-/ - and if anyone could help ...


Answer: It appears that the default omnicompletion for python
(`pythoncomplete#Complete`) does not know about buildins/keywords.

When you `Ctrl-X``Ctrl-O` on `math.` (if you have imported "math") you should
see the available `math.` functions but to do so for `print`, `sorted` etc **I
think** you need a plugin like:

  * [Pydiction](http://www.vim.org/scripts/script.php?script_id=850) or
  * [PySmell](http://www.vim.org/scripts/script.php?script_id=2421)

