从Eclipse PDT转换为Vim [英] Converting from Eclipse PDT to Vim
问题描述
我真的很喜欢VIM - 它是我遇到过的几个应用程序之一,让你感到内心温暖和模糊。然而,对于PHP开发,我仍然使用PDT Eclipse,尽管我想要切换。
I truly love VIM - it's one of only a handful of applications I've every come across that make you feel warm and fuzzy inside. However, for PHP development, I still use PDT Eclipse although I would love to switch.
目前我不太清楚的原因是我依赖的CTRL + SPACE代码辅助功能,这非常有用,特别是当提示类型时,或使用PHPDoc变量注释块。
The reason I can't quite at the moment is the CTRL+SPACE code-assist functionality that I rely on so much - it's so useful, especially when type hinting, or using PHPDoc variable comment blocks.
我知道那里有很好的VIM插件可以复制这个功能,然后是一些 - 但它们是什么?
I know there are cool plugins for VIM out there that can probably replicate this functionality and then some - but what are they?
推荐答案
Vim有 OmniCompletion ,您应该将其添加到您的.vimrc中:
Vim has OmniCompletion built in, you should add this to your .vimrc:
filetype plugin on
au FileType php set omnifunc=phpcomplete#CompletePHP
另外我推荐你这个插件:
In addition I recommend you this plugins:
- VTreeExplorer
- snippetsEmu
还要看看这个文章在Vim中进行调试,此论文,i t在PHP开发中使用Vim有很多有用的提示。
and also take a look to this article about php debugging in Vim, and this paper, it has many useful tips for using Vim in PHP Development.
这篇关于从Eclipse PDT转换为Vim的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!