Improved ruby snip.

This commit is contained in:
ujihisa 2012-09-22 22:55:13 -07:00
parent 20db46190d
commit 52d86e726c
2 changed files with 11 additions and 4 deletions

View File

@ -6,7 +6,7 @@ abbr if end
snippet def
abbr def end
def ${1:func_name}
def ${1:method_name}
${2}
end
@ -23,17 +23,23 @@ abbr do |var| end
end
snippet block
abbr { |var| }
abbr { }
{
${1}
}
snippet blockvar
abbr { |var| }
{ |${1:var}|
abbr {|var| }
{|${1:var}|
${2}
}
snippet fileopen
abbr File.open(filename) do end
File.open(${1:filename}, '${2:w}') do |${3:io}|
${0}
end
snippet edn
abbr => end?
end

View File

@ -312,6 +312,7 @@ CHANGELOG *neocomplcache-snippets-complete-changelog*
- Fixed column in select mode.
- Added lua snip.
- Improved javascript snip.
- Improved ruby snip.
2012-09-06
- Added neocomplcache__convertable attribute.