45 lines
593 B
Plaintext
45 lines
593 B
Plaintext
|
snippet if
|
||
|
abbr if end
|
||
|
if ${1:condition}
|
||
|
${2}
|
||
|
end
|
||
|
|
||
|
snippet def
|
||
|
abbr def end
|
||
|
def ${1:func_name}
|
||
|
${2}
|
||
|
end
|
||
|
|
||
|
snippet do
|
||
|
abbr do end
|
||
|
do
|
||
|
${1}
|
||
|
end
|
||
|
|
||
|
snippet dovar
|
||
|
abbr do |var| end
|
||
|
do |${1:var}|
|
||
|
${2}
|
||
|
end
|
||
|
|
||
|
snippet block
|
||
|
abbr { |var| }
|
||
|
{
|
||
|
${1}
|
||
|
}
|
||
|
|
||
|
snippet blockvar
|
||
|
abbr { |var| }
|
||
|
{ |${1:var}|
|
||
|
${2}
|
||
|
}
|
||
|
|
||
|
snippet edn
|
||
|
abbr => end?
|
||
|
end
|
||
|
|
||
|
snippet urlencode
|
||
|
# coding: utf-8
|
||
|
require 'erb'
|
||
|
puts ERB::Util.url_encode '${1}'
|