Has anyone found a good set of python plugins for vim — specifically module completion?

久未见 提交于 2019-12-02 15:38:01

Here you can find some info about this.

It covers code completion, having a list of classes and functions in open files. I haven't got around to do a full configuration for vim, since I don't use Python primarily, but I have the same interests in transforming vim in a better Python IDE.

Edit: The original site is down, so found it saved on the web archive.

klen

And I write another plugin: https://github.com/klen/python-mode

Old (now its more powerful) screencast here: https://www.youtube.com/watch?v=67OZNp9Z0CQ

Old question, but I typed all this up for a misread question...

General plugin recommendations: LookupFile and a plugin for your source control system (I like Git and Git-Vim).

Python plugin recommendations: If you're using Linux, I'd recommend ipython and ipy.py (a better interactive interpreter). Improved syntax highlighting, snippets, pydoc, and for refactoring support bicyclerepairman. I got started with this post.

You may want to try looking through someone's vimfiles. Mine are on github.

For refactoring: ropevim

Here is some info on Bazaar integration if you're interested:

https://launchpad.net/bzr-vim-commands

I use pydoc.vim (I actually wrote it) a lot, try it and tell me what you think. Another one that I think is quite useful is the updated syntax file with all it's extensions that you can enable, which you can find here.

I use Pydiction (http://www.vim.org/scripts/script.php?script_id=850) it's a plugin for vim that lets you Tab-complete python modules/methods/attributes/keywords, including 3rd party stuff like Pygame, wxPython, Twisted, and literally everything. It works more accurately than other things i've tried and it doesn't even require that python support be compiled into your Vim.

Code completion: PySmell looks promising. It's work-in-progress, but alredy useful.

I personally thinkJedi Vim is the best, but it is incompatible with python-mode.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!