Provides a bunch of autocomplete snippets for Vim using snipMate.
Latest commit ad97bd8 Nov 3, 2011 @theunraveler Merge pull request #12 from kostajh/master
Add hook_update_N() snippet, instructions for vimrc and filetype
Permalink
Failed to load latest commit information.
snippets/drupal Add hook_update_N() snippet Nov 3, 2011
README.md Add instructions for vimrc and filetype Nov 3, 2011

README.md

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.

Configuration

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