Converting from Eclipse PDT to Vim [closed]

徘徊边缘 提交于 2019-12-03 02:59:23

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:

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.

Code assist it's a new feature of VIM 7 [Ctrl+x] [Ctrl+o] will auto complete your code or open a popup of options

More features of VIM 7 can be found in this blogpost

Btw, I too like vim, but the PDT (and other IDEs) has much more features than code assist that make me preffer them over it.

Look at SuperTab for making tab-autocompletion in Vim a bit easier to use than the standard bindings. You may also want to look into ctags, if you're into code indexing. Google "php vim ctags" and you'll see plenty of articles describing how to set it up.

The official Vim Wiki has a PHP section with some good tips, like integrating the official PHP documentation.

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