Skip to content
vim snippet definitions
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Snippets for Vim


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.



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:


The snippets are loaded immediately if snipMate is active.

You can’t perform that action at this time.