I'm beginning to see the light: Vim is awesome.
However, there is nothing for Vim that matches the PHP Drupal bundle for Textmate, what with the autocompletion and snippet goodness. So here will be an ongoing attempt to recreate that in Vim using the snipMate plugin.
These snippets require the snipMate plugin for Vim. Once you get that up and running, just put the 'drupal' directory in your ~/.vim/snippets (or wherever you install your Vim scripts to).
For the snippets to work, the filetype needs to specify drupal
.
You may want to use the Drupal Plugin for Vim which will do this for you, or, in your .vimrc
file, add the line:
:set filetype=drupal.php