aboutsummaryrefslogtreecommitdiff
path: root/vim/bundle/vim-snippets/snippets/awk.snippets
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2016-06-30 16:11:56 +0200
committerKarel Kočí <cynerd@email.cz>2016-06-30 16:11:56 +0200
commit9931e0888b2419326ae10ebbfae532261c5c125f (patch)
tree7504be5daccbb7b7d1ea396754de47b11ed790e5 /vim/bundle/vim-snippets/snippets/awk.snippets
parente573b3020c032400eed60b649a2cbf55266e6bb0 (diff)
downloadmyconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.tar.gz
myconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.tar.bz2
myconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.zip
Fix submodules
Diffstat (limited to 'vim/bundle/vim-snippets/snippets/awk.snippets')
m---------vim/bundle/vim-snippets0
-rw-r--r--vim/bundle/vim-snippets/snippets/awk.snippets102
2 files changed, 0 insertions, 102 deletions
diff --git a/vim/bundle/vim-snippets b/vim/bundle/vim-snippets
new file mode 160000
+Subproject 15d7e5ec26ec93adee4051b6359be90a943aa38
diff --git a/vim/bundle/vim-snippets/snippets/awk.snippets b/vim/bundle/vim-snippets/snippets/awk.snippets
deleted file mode 100644
index 32e56f2..0000000
--- a/vim/bundle/vim-snippets/snippets/awk.snippets
+++ /dev/null
@@ -1,102 +0,0 @@
-# cannot use /usr/bin/env because it does not support parameters (as -f)
-snippet #! #!/usr/bin/awk -f
- #!/usr/bin/awk -f
-
-# @include is a gawk extension
-snippet inc @include
- @include "${1}"${0}
-
-# @load is a gawk extension
-snippet loa @load
- @load "${1}"${0}
-
-snippet beg BEGIN { ... }
- BEGIN {
- ${0}
- }
-
-# BEGINFILE is a gawk extension
-snippet begf BEGINFILE { ... }
- BEGINFILE {
- ${0}
- }
-
-snippet end END { ... }
- END {
- ${0}
- }
-
-# ENDFILE is a gawk extension
-snippet endf ENDFILE { ... }
- ENDFILE {
- ${0}
- }
-
-snippet pri print
- print ${1:"${2}"}${0}
-
-snippet printf printf
- printf("${1:%s}\n", ${2})${0}
-
-snippet ign IGNORECASE
- IGNORECASE = ${1:1}
-
-snippet if if {...}
- if (${1}) {
- ${0}
- }
-
-snippet ife if ... else ...
- if (${1}) {
- ${2}
- } else {
- ${0}
- }
-
-snippet eif else if ...
- else if (${1}) {
- ${0}
- }
-
-snippet el else {...}
- else {
- ${0}
- }
-
-snippet wh while
- while (${1}) {
- ${2}
- }
-
-snippet do do ... while
- do {
- ${0}
- } while (${1})
-
-snippet for for
- for (${2:i} = 0; i < ${1:n}; ${3:++i}) {
- ${0}
- }
-
-snippet fore for each
- for (${1:i} in ${2:array}) {
- ${0}
- }
-
-# the switch is a gawk extension
-snippet sw switch
- switch (${1}) {
- case ${2}:
- ${3}
- break
- default:
- ${0}
- break
- }
-
-# the switch is a gawk extension
-snippet case case
- case ${1}:
- ${0}
- break
-