The snippets.vim repository contains a collection of code snippets for Vim. In particular, it contains snippets for the following snippet engines:
- snipMate
- others in the future
It has been specialized for C and php, containing snippets for every standard function. Other languages are available to a different degree of completeness.
Add the following lines to your ~/.vimrc:
Bundle 'javier-lopez/snippets.vim'
let g:snippets_dir = "~/.vim/bundle/snippets.vim/snipmate/"
Then run the following command in Vim:
:BundleInstall
The snippets are loaded immediately if snipMate is active.