Snipmate of Vim Plugin

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.