Snipmate Introduction
Snipmate a powerful code completion plug-in, customizable code templates, and the ability to complement words.
Vim plugin Snipmate
Snipmate Installation
Unzip the snipmate.zip into the ~/.vim directory. Where the snippets directory contains code templates, you can modify and add code templates as needed.
Snipmate use
Code completion shortcut key is tab, can be modified into other hotkeys.
Examples of code completion are as follows:
1.
After you enter Inc, press the TAB key. code automatically filled for #include <stdio.h>
2.
Enter DEF and press the TAB key. The code is automatically padded to #define
3.
Enter if, and press the TAB key. The code is automatically padded with if (/* condition */) {/ * code */}
4.
Enter for, and press the TAB key. The code is automatically padded for (i = 0; i < count; i++) {/ * code */}
Reprint: http://blog.csdn.net/devilcash/article/details/7168309
Snipmate of Vim Plugin