1
0
Fork 0
mirror of synced 2024-11-29 20:25:34 -05:00
ultimate-vim/sources_non_forked/vim-snippets/snippets/autoit.snippets

67 lines
1.1 KiB
Text
Raw Normal View History

2012-08-16 23:41:25 -04:00
snippet if
If $1 Then
${0:; True code}
2012-08-16 23:41:25 -04:00
EndIf
snippet el
Else
${0}
2013-07-17 19:06:05 -04:00
snippet eif
ElseIf $1 Then
${0:; True code}
2012-08-16 23:41:25 -04:00
# If/Else block
2013-07-17 19:06:05 -04:00
snippet ife
If $1 Then
2012-08-16 23:41:25 -04:00
${2:; True code}
Else
${0:; Else code}
2012-08-16 23:41:25 -04:00
EndIf
2013-07-17 19:06:05 -04:00
# If/ElseIf/Else block - because there is eif this is not really neccessary
2012-08-16 23:41:25 -04:00
snippet ifelif
If ${1:condition 1} Then
${2:; True code}
ElseIf ${3:condition 2} Then
${4:; True code}
Else
${0:; Else code}
2012-08-16 23:41:25 -04:00
EndIf
# Switch block
snippet switch
Switch ($1)
Case ${2:case1}:
${3:; Case 1 code}
2012-08-16 23:41:25 -04:00
Case Else:
${0:; Else code}
2012-08-16 23:41:25 -04:00
EndSwitch
# Select block
snippet select
Select ($1)
Case ${2:case1}:
${3:; Case 1 code}
2012-08-16 23:41:25 -04:00
Case Else:
${0:; Else code}
2012-08-16 23:41:25 -04:00
EndSelect
# While loop
snippet wh
While ($1)
${0:; code...}
2012-08-16 23:41:25 -04:00
WEnd
# For loop
snippet for
For ${1:n} = ${3:1} to ${2:count}
${0:; code...}
2012-08-16 23:41:25 -04:00
Next
# New Function
snippet func
Func ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
${0:Return}
2012-08-16 23:41:25 -04:00
EndFunc
# Message box
snippet msg
MsgBox(${0:MsgType}, ${1:"Title"}, ${2:"Message Text"})
2012-08-16 23:41:25 -04:00
# Debug Message
snippet debug
MsgBox(0, "Debug", ${0:"Debug Message"})
2012-08-16 23:41:25 -04:00
# Show Variable Debug Message
snippet showvar
MsgBox(0, "${0:VarName}", $1)