summaryrefslogtreecommitdiffstats
path: root/vim/snippets/c.snippets
blob: eece3464b70409c7df1bbeb6f2f6524e13a9030b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
snippet guard
	#ifndef ${1:`'_' . toupper(substitute(matchstr(expand("%"), '^.*/\zs.*\.h'), '[.-]', '_', 'g'))`}
	#define $1

	${0}

	#endif
snippet main
	int main(int argc, char *argv[])
	{
		${0}
	}