Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting from Eclipse PDT to Vim [closed]

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?

like image 258
DavidWinterbottom Avatar asked Oct 14 '08 20:10

DavidWinterbottom


1 Answers

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

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.

like image 93
Christian C. Salvadó Avatar answered Oct 12 '22 22:10

Christian C. Salvadó