Snippets for Vim

Description

The snippets.vim repository contains a collection of code snippets for Vim. In particular, it contains snippets for the following snippet engines:

It has been specialized for C and php, containing snippets for every standard function. Other languages are available to a different degree of completeness.

Installation

Vundle

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.