neosnippet.vim/autoload/neocomplcache/sources/snippets_complete/ruby.snip

45 lines
593 B
Plaintext
Raw Normal View History

2012-02-02 04:33:35 +00:00
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}'