]> git.madduck.net Git - etc/vim.git/blobdiff - .vim/snippets/tcl.snippets

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

switch vimperator hook to pentadactyl
[etc/vim.git] / .vim / snippets / tcl.snippets
deleted file mode 100644 (file)
index bee2ef8a4a10986a6668bb2680a383b34abd1bc2..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1,92 +0,0 @@
-# #!/usr/bin/tclsh
-snippet #!
-       #!/usr/bin/tclsh
-       
-# Process
-snippet pro
-       proc ${1:function_name} {${2:args}} {
-               ${3:#body ...}
-       }
-#xif
-snippet xif
-       ${1:expr}? ${2:true} : ${3:false}
-# Conditional
-snippet if
-       if {${1}} {
-               ${2:# body...}
-       }
-# Conditional if..else
-snippet ife
-       if {${1}} {
-               ${2:# body...}
-       } else {
-               ${3:# else...}
-       }
-# Conditional if..elsif..else
-snippet ifee
-       if {${1}} {
-               ${2:# body...}
-       } elseif {${3}} {
-               ${4:# elsif...}
-       } else {
-               ${5:# else...}
-       }
-# If catch then
-snippet ifc
-       if { [catch {${1:#do something...}} ${2:err}] } {
-               ${3:# handle failure...}
-       }
-# Catch
-snippet catch
-       catch {${1}} ${2:err} ${3:options}
-# While Loop
-snippet wh
-       while {${1}} {
-               ${2:# body...}
-       }
-# For Loop
-snippet for
-       for {set ${2:var} 0} {$$2 < ${1:count}} {${3:incr} $2} {
-               ${4:# body...}
-       }
-# Foreach Loop
-snippet fore
-       foreach ${1:x} {${2:#list}} {
-               ${3:# body...}
-       }
-# after ms script...
-snippet af
-       after ${1:ms} ${2:#do something}
-# after cancel id
-snippet afc
-       after cancel ${1:id or script}
-# after idle
-snippet afi
-       after idle ${1:script}
-# after info id
-snippet afin
-       after info ${1:id}
-# Expr
-snippet exp
-       expr {${1:#expression here}}
-# Switch
-snippet sw
-       switch ${1:var} {
-               ${3:pattern 1} {
-                       ${4:#do something}
-               }
-               default {
-                       ${2:#do something}
-               }
-       }
-# Case
-snippet ca
-       ${1:pattern} {
-               ${2:#do something}
-       }${3}
-# Namespace eval
-snippet ns
-       namespace eval ${1:path} {${2:#script...}}
-# Namespace current
-snippet nsc
-       namespace current
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..119c2ab7915b2e46794f096dcd2733c515636843
--- /dev/null
@@ -0,0 +1 @@
+/usr/share/vim/addons/snippets/tcl.snippets
\ No newline at end of file