]> git.r.bdr.sh - rbdr/dotfiles/blame - vim/snippets/autoit.snippets
Remove tmux powerline url from gitmodules
[rbdr/dotfiles] / vim / snippets / autoit.snippets
CommitLineData
0d23b6e5
BB
1snippet if
2 If ${1:condition} Then
3 ${2:; True code}
4 EndIf
5snippet el
6 Else
7 ${1}
8snippet elif
9 ElseIf ${1:condition} Then
10 ${2:; True code}
11# If/Else block
12snippet ifel
13 If ${1:condition} Then
14 ${2:; True code}
15 Else
16 ${3:; Else code}
17 EndIf
18# If/ElseIf/Else block
19snippet ifelif
20 If ${1:condition 1} Then
21 ${2:; True code}
22 ElseIf ${3:condition 2} Then
23 ${4:; True code}
24 Else
25 ${5:; Else code}
26 EndIf
27# Switch block
28snippet switch
29 Switch (${1:condition})
30 Case {$2:case1}:
31 {$3:; Case 1 code}
32 Case Else:
33 {$4:; Else code}
34 EndSwitch
35# Select block
36snippet select
37 Select (${1:condition})
38 Case {$2:case1}:
39 {$3:; Case 1 code}
40 Case Else:
41 {$4:; Else code}
42 EndSelect
43# While loop
44snippet while
45 While (${1:condition})
46 ${2:; code...}
47 WEnd
48# For loop
49snippet for
50 For ${1:n} = ${3:1} to ${2:count}
51 ${4:; code...}
52 Next
53# New Function
54snippet func
55 Func ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
56 ${4:Return}
57 EndFunc
58# Message box
59snippet msg
60 MsgBox(${3:MsgType}, ${1:"Title"}, ${2:"Message Text"})
61# Debug Message
62snippet debug
63 MsgBox(0, "Debug", ${1:"Debug Message"})
64# Show Variable Debug Message
65snippet showvar
66 MsgBox(0, "${1:VarName}", $1)