aboutsummaryrefslogtreecommitdiff
path: root/vim/bundle/vim-snippets/snippets/autoit.snippets
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2016-06-30 16:03:25 +0200
committerKarel Kočí <cynerd@email.cz>2016-06-30 16:03:25 +0200
commite573b3020c032400eed60b649a2cbf55266e6bb0 (patch)
tree8f572394ac8433529c7a8e70d160a2fbe8268b4e /vim/bundle/vim-snippets/snippets/autoit.snippets
parentb8c667bd64b3edd38d56c63c5bd1db53a23b4499 (diff)
downloadmyconfigs-e573b3020c032400eed60b649a2cbf55266e6bb0.tar.gz
myconfigs-e573b3020c032400eed60b649a2cbf55266e6bb0.tar.bz2
myconfigs-e573b3020c032400eed60b649a2cbf55266e6bb0.zip
Add current configurations from old repository
Diffstat (limited to 'vim/bundle/vim-snippets/snippets/autoit.snippets')
-rw-r--r--vim/bundle/vim-snippets/snippets/autoit.snippets66
1 files changed, 66 insertions, 0 deletions
diff --git a/vim/bundle/vim-snippets/snippets/autoit.snippets b/vim/bundle/vim-snippets/snippets/autoit.snippets
new file mode 100644
index 0000000..f973fbc
--- /dev/null
+++ b/vim/bundle/vim-snippets/snippets/autoit.snippets
@@ -0,0 +1,66 @@
+snippet if
+ If ${1:condition} Then
+ ${0:; True code}
+ EndIf
+snippet el
+ Else
+ ${0}
+snippet eif
+ ElseIf ${1:condition} Then
+ ${0:; True code}
+# If/Else block
+snippet ife
+ If ${1:condition} Then
+ ${2:; True code}
+ Else
+ ${0:; Else code}
+ EndIf
+# If/ElseIf/Else block - because there is eif this is not really neccessary
+snippet ifelif
+ If ${1:condition 1} Then
+ ${2:; True code}
+ ElseIf ${3:condition 2} Then
+ ${4:; True code}
+ Else
+ ${0:; Else code}
+ EndIf
+# Switch block
+snippet switch
+ Switch (${1:condition})
+ Case ${2:case1}:
+ ${3:; Case 1 code}
+ Case Else:
+ ${0:; Else code}
+ EndSwitch
+# Select block
+snippet select
+ Select (${1:condition})
+ Case ${2:case1}:
+ ${3:; Case 1 code}
+ Case Else:
+ ${0:; Else code}
+ EndSelect
+# While loop
+snippet wh
+ While (${1:condition})
+ ${0:; code...}
+ WEnd
+# For loop
+snippet for
+ For ${1:n} = ${3:1} to ${2:count}
+ ${0:; code...}
+ Next
+# New Function
+snippet func
+ Func ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
+ ${0:Return}
+ EndFunc
+# Message box
+snippet msg
+ MsgBox(${0:MsgType}, ${1:"Title"}, ${2:"Message Text"})
+# Debug Message
+snippet debug
+ MsgBox(0, "Debug", ${0:"Debug Message"})
+# Show Variable Debug Message
+snippet showvar
+ MsgBox(0, "${0:VarName}", $1)