Add mc, m snippets; fix once, head

This commit is contained in:
Eryn Wells 2014-03-15 00:12:27 -07:00
parent 77b5b72b1e
commit 29bbacd686

View file

@ -4,7 +4,6 @@ snippet uchar
unsigned char
snippet ulong
unsigned long
snippet head
/* `expand('%:t')`
*
@ -12,7 +11,8 @@ snippet head
*
* `g:snips_author`
*/
${2}
snippet main
int
main(int argc,
@ -35,3 +35,22 @@ snippet pragma Ignore warning
${0}
#pragma clang diagnostic pop
snippet once
#ifndef ${1:`expand('%:t')`}
#define $1
${2}
#endif /* $1 */
snippet mc
/*
* ${1:Function} --
*
* ${2:Description}
*/
snippet m
${2:void}
${1:Function}(${3:/* args */})
{
${3}
}