inital checkin using existing vim and preparing for use of bash_magic
This commit is contained in:
63
vim/bundle/snipmate.vim/snippets/coffee.snippets
Normal file
63
vim/bundle/snipmate.vim/snippets/coffee.snippets
Normal file
@@ -0,0 +1,63 @@
|
||||
snippet bfun
|
||||
${1:(${2:args}) }=>
|
||||
${3:# body...}
|
||||
|
||||
snippet cla
|
||||
class ${1:ClassName}${2: extends ${3:Ancestor}}
|
||||
${4:constructor: (${5:args}) ->
|
||||
${6:# body...}}
|
||||
$7
|
||||
|
||||
snippet elif
|
||||
else if ${1:condition}
|
||||
${2:# body...}
|
||||
|
||||
snippet fora
|
||||
for ${1:name} in ${2:array}
|
||||
${3:# body...}
|
||||
|
||||
snippet foro
|
||||
for ${1:key}, ${2:value} of ${3:Object}
|
||||
${0:# body...}
|
||||
|
||||
snippet forr
|
||||
for ${1:name} in [${2:start}..${3:finish}]${4: by ${5:step}}
|
||||
${6:# body...}
|
||||
|
||||
snippet forrex
|
||||
for ${1:name} in [${2:start}...${3:finish}]${4: by ${5:step}}
|
||||
${6:# body...}
|
||||
|
||||
snippet fun
|
||||
${1:name} = (${2:args}) ->
|
||||
${3:# body...}
|
||||
|
||||
snippet if
|
||||
if ${1:condition}
|
||||
${2:# body...}
|
||||
|
||||
snippet ife
|
||||
if ${1:condition}
|
||||
${2:# body...}
|
||||
else
|
||||
${3:# body...}
|
||||
|
||||
snippet ifte
|
||||
if ${1:condition} then ${2:value} else ${3:other}
|
||||
|
||||
snippet log
|
||||
console.log $1
|
||||
|
||||
snippet swi
|
||||
switch ${1:object}
|
||||
when ${2:value}
|
||||
${0:# body...}
|
||||
|
||||
snippet try
|
||||
try
|
||||
$1
|
||||
catch ${2:error}
|
||||
$3
|
||||
|
||||
snippet unl
|
||||
${1:action} unless ${2:condition}
|
||||
Reference in New Issue
Block a user