]> git.r.bdr.sh - rbdr/dotfiles/blob - vim/snippets/autoit.snippets
Remove SearchComplete vim plugin
[rbdr/dotfiles] / vim / snippets / autoit.snippets
1 snippet if
2 If ${1:condition} Then
3 ${2:; True code}
4 EndIf
5 snippet el
6 Else
7 ${1}
8 snippet elif
9 ElseIf ${1:condition} Then
10 ${2:; True code}
11 # If/Else block
12 snippet ifel
13 If ${1:condition} Then
14 ${2:; True code}
15 Else
16 ${3:; Else code}
17 EndIf
18 # If/ElseIf/Else block
19 snippet 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
28 snippet 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
36 snippet 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
44 snippet while
45 While (${1:condition})
46 ${2:; code...}
47 WEnd
48 # For loop
49 snippet for
50 For ${1:n} = ${3:1} to ${2:count}
51 ${4:; code...}
52 Next
53 # New Function
54 snippet func
55 Func ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
56 ${4:Return}
57 EndFunc
58 # Message box
59 snippet msg
60 MsgBox(${3:MsgType}, ${1:"Title"}, ${2:"Message Text"})
61 # Debug Message
62 snippet debug
63 MsgBox(0, "Debug", ${1:"Debug Message"})
64 # Show Variable Debug Message
65 snippet showvar
66 MsgBox(0, "${1:VarName}", $1)