mirror of
https://github.com/amix/vimrc
synced 2025-06-16 01:25:00 +08:00
Updated plugins and added vim-markdown
This commit is contained in:
@ -608,6 +608,12 @@ returning ${1:variable} do${2/(^(?<var>\s*[a-z_][a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s
|
||||
end
|
||||
endsnippet
|
||||
|
||||
snippet cmm "Create Migration Model Class"
|
||||
class Migration${1/(?:^|_)(\w)/\u$1/g} < ApplicationRecord
|
||||
self.table_name = :${1:model_name}s
|
||||
end
|
||||
endsnippet
|
||||
|
||||
snippet t. "t.binary (tcbi)"
|
||||
t.binary :${1:title}${2:, :limit => ${3:2}.megabytes}
|
||||
t.$0
|
||||
|
Reference in New Issue
Block a user