Converting from Eclipse PDT to Vim [closed]
Asked Answered
A

3

8

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.

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.

I know there are cool plugins for VIM out there that can probably replicate this functionality and then some - but what are they?

Antonio answered 14/10, 2008 at 20:32 Comment(0)
E
7

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.

Ellinger answered 14/10, 2008 at 20:46 Comment(2)
your last link to a scribd.com paper has been taken down :( I hope a replacement link is available!Understructure
@Derek: You can find it here, sorry for the delayed response, I haven't noticed your comment until now, when someone up-voted my answer. Cheers.Intensity
A
0

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.

Ardie answered 14/10, 2008 at 20:46 Comment(0)
H
0

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.

Horseshoes answered 15/10, 2008 at 19:3 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.