Sunday, 16 December 2012

The Vim/python evolution

The Vim/python evolution just made a jump, first there were no satisfying autocompletions for python and now we've got several. I can confirm that python-mode and jedi-vim work well together. I have the omnicompletion shortcut on alt-space and the python-mode on ctrl-space, since jedi-vim hooks into omnicompletion I still have access to both.

8 comments:

  1. First mention I've seen of jedi-vim on a blog on Planet Python. Works great, thanks for the tip!

    ReplyDelete
  2. Does jedi-vim work with third party Python libraries?

    ReplyDelete
    Replies
    1. You mean autocomplete a third party library?

      Well, that again depends what you mean with third party python libraries. For example it works with numpy: https://plus.google.com/u/0/108930696751900002503/posts/BP4U88KkwZU

      On the other hand it doesn't work well with sqlite3.

      Delete
    2. sqlite3 is working now. If some builtins don't work, just let me know. I'll fix it.

      https://github.com/davidhalter/jedi/issues/84

      Delete
    3. ode, well I learned that jedi supports most libraries and the ones it doesn't support are easy to add.

      Delete
    4. Great thanks, I'll give it a try.

      Could you name the other autocompletions for Python you mention?
      I've tried Pysmell in the past but it wouldn't work that well and has been abandoned for years.

      Cheers

      Delete
    5. That other is python-mode, its autocompletion is based on rope, which is a great refactoring tool.

      Delete
  3. This comment has been removed by the author.

    ReplyDelete