Add snippets for c++
This commit is contained in:
parent
027fcb069c
commit
d190ab06db
1 changed files with 16 additions and 0 deletions
16
_config/nvim/UltiSnips/cpp.snippets
Normal file
16
_config/nvim/UltiSnips/cpp.snippets
Normal file
|
@ -0,0 +1,16 @@
|
|||
snippet main
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main() {
|
||||
printf("Hello, World!\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
endsnippet
|
||||
|
||||
snippet fori
|
||||
for (int $1 = $2; $1 < $3; $1++) {
|
||||
$0
|
||||
}
|
||||
endsnippet
|
Loading…
Add table
Reference in a new issue