我正在寻找一套插件,可以帮助我最终全职切换到 vim。
现在我使用 Komodo 取得了一些成功,但是他们的 vim 绑定有足够多的小错误,我已经厌倦了。
不过,我真正喜欢 Komodo 的是代码补全。 所以,这就是我正在寻找的内容(按重要性排序)。
- 代码完成,含义:编写完整模块/功能/等的能力。 在 pythonpath 上的任何模块中,不仅仅是系统模块。 完成时显示文档字符串的奖励积分。
- 跳转到类定义。 我猜 CTAGS 会做到这一点,那么你们如何管理自动更新标签文件呢?
- 用于管理缓冲区的项目类型管理:理想情况下能够在目录结构中 grep 查找文件名以将其打开。 在缓冲区打开时显示类定义索引的好处。
- Bzr 整合。 并不是特别重要,因为大部分工作我都可以直接放到 shell 中完成。
I'm looking for a suite of plugins that can help me finally switch over to vim full-time.
Right now I'm using Komodo with some good success, but their vim bindings have enough little errors that I'm tired of it.
What I do love in Komodo, though, is the code completion. So, here's what I'm looking for (ordered by importance).
- Code completion, meaning: the ability to code complete modules/functions/etc. in any module that's on the pythonpath, not just system modules. Bonus points for showing docstrings when completing.
- Jump-to a class definition. I'm guessing CTAGS will do this, so how do you all manage automatically updating your tags files?
- Project type management for managing buffers: ideally the ability to grep for a filename in a directory structure to open it. Bonus for showing an index of class definitions while a buffer is open.
- Bzr integration. Not super important, since most of it I can just drop to the shell to do.
发布评论
评论(9)
我个人认为 Jedi Vim 是最好的,但它与 python 模式不兼容。
I personally thinkJedi Vim is the best, but it is incompatible with python-mode.
对于重构: ropevim
For refactoring: ropevim
如果您有兴趣,这里有一些有关 Bazaar 集成的信息:
https://launchpad.net/bzr-vim -命令
Here is some info on Bazaar integration if you're interested:
https://launchpad.net/bzr-vim-commands
我经常使用 pydoc.vim (我实际上写了它),尝试一下并告诉我你的想法。 我认为非常有用的另一个是更新的语法文件,其中包含您可以启用的所有扩展,您可以找到它 此处。
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.
我使用 Pydiction (http://www.vim.org/scripts/script. php?script_id=850) 它是一个 vim 插件,可让您使用 Tab 键完成 python 模块/方法/属性/关键字,包括 Pygame、wxPython、Twisted 等第 3 方内容以及几乎所有内容。 它比我尝试过的其他东西更准确,甚至不需要将 python 支持编译到你的 Vim 中。
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.
代码完成: PySmell 看起来很有前途。 它正在开发中,但已经很有用了。
Code completion: PySmell looks promising. It's work-in-progress, but alredy useful.
老问题,但我输入所有这些都是为了误读问题...
一般插件建议:Git-Vim)。
Python 插件推荐:如果您使用 Linux,我推荐 ipython 和 ipy.py(更好的交互式解释器)。 改进的语法突出显示,片段, pydoc,以及重构支持bicyclerepairman。 我开始阅读这篇文章 。
您可能想尝试查看某人的 vim 文件。 我的在 github 上。
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.
在这里您可以找到一些相关信息。
它涵盖了代码完成,在打开的文件中包含类和函数的列表。 我还没有时间对 vim 进行完整的配置,因为我主要不使用 Python,但我对将 vim 改造为更好的 Python IDE 也有同样的兴趣。
编辑:原来的网站已关闭,所以找到了保存在网络存档中。
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.
我编写了另一个插件: https://github.com/klen/python-mode
旧 (现在它更强大)这里的截屏:https://www.youtube.com/watch?v=67OZNp9Z0CQ
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