Remove all the newlines from c.snippets

This commit is contained in:
Eryn Wells 2014-04-13 08:07:16 -07:00
parent a1da1eb1e2
commit 64cfac63a5

View file

@ -4,13 +4,10 @@
snippet uint snippet uint
unsigned int unsigned int
snippet uchar snippet uchar
unsigned char unsigned char
snippet ulong snippet ulong
unsigned long unsigned long
snippet head snippet head
/* ${1:`expand('%:t')`} /* ${1:`expand('%:t')`}
* vim: set ${2:tw=80}: * vim: set ${2:tw=80}:
@ -21,7 +18,6 @@ snippet head
*/ */
${4} ${4}
snippet main snippet main
int int
main(int argc, main(int argc,
@ -30,7 +26,6 @@ snippet main
${1} ${1}
return 0; return 0;
} }
snippet mainn snippet mainn
int int
main() main()
@ -38,7 +33,6 @@ snippet mainn
${1} ${1}
return 0; return 0;
} }
snippet pragma Ignore warning snippet pragma Ignore warning
#pragma clang diagnostic push #pragma clang diagnostic push
#pragma clang diagnostic ignore "${1}" #pragma clang diagnostic ignore "${1}"
@ -46,7 +40,6 @@ snippet pragma Ignore warning
${2} ${2}
#pragma clang diagnostic pop #pragma clang diagnostic pop
snippet once snippet once
#ifndef ${1:__`toupper(substitute(expand('%:t'), '\.', '_', ''))`__} #ifndef ${1:__`toupper(substitute(expand('%:t'), '\.', '_', ''))`__}
#define $1 #define $1
@ -54,36 +47,28 @@ snippet once
${2} ${2}
#endif /* $1 */ #endif /* $1 */
snippet dc Method Header snippet dc Method Header
/* /*
* ${1:Function} -- * ${1:Function} --
*/${2} */${2}
snippet dc Method Description snippet dc Method Description
/** /**
* ${1:Description} * ${1:Description}
*/${2} */${2}
snippet dc One-line description snippet dc One-line description
/** ${1:Description} */${0} /** ${1:Description} */${0}
snippet dcs snippet dcs
@see ${1:SomeOtherEntity} @see ${1:SomeOtherEntity}
snippet dcp snippet dcp
@param [${1:in}] ${2:Description} @param [${1:in}] ${2:Description}
snippet dcr snippet dcr
@return ${1:Return value} @return ${1:Return value}
snippet m Generic method snippet m Generic method
${1:void} ${1:void}
${2:Class}::${3:Function}(${4:/* args */}) ${2:Class}::${3:Function}(${4:/* args */})
{ {
${5} ${5}
} }
snippet m Getter snippet m Getter
${1:Type} ${1:Type}
${2:Class}::Get${3:VarName}() ${2:Class}::Get${3:VarName}()
@ -91,14 +76,12 @@ snippet m Getter
{ {
return m${4:$3}; return m${4:$3};
}${0} }${0}
snippet m Setter snippet m Setter
void void
${1:Class}::Set${2:VarName}(${3:Type} ${4:var}) ${1:Class}::Set${2:VarName}(${3:Type} ${4:var})
{ {
m${5:$4} = $4; m${5:$4} = $4;
}${0} }${0}
snippet md Getter/Setter snippet md Getter/Setter
${1:Type} Get${2:VarName}() const; ${1:Type} Get${2:VarName}() const;
void Set${3:$2}(${1} ${4:var}); void Set${3:$2}(${1} ${4:var});