1
0
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:
Amir Salihefendic
2018-02-04 12:35:08 +01:00
parent 2514de5b22
commit 8eeefe86c2
111 changed files with 6623 additions and 923 deletions

View File

@ -347,6 +347,19 @@ snippet mct
create_table :${1:table_name} do |t|
${0}
end
snippet mrev reversible do |dir| ... dir.up .. dir.down .. end
reversible do |dir|
dir.up do
${0}
end
dir.down do
end
end
snippet cmm class Migration... < ApplicationModel .. self.table_name .. end
class Migration${1:class_name} < ApplicationRecord
self.table_name = :${2:model_name}s
end
snippet migration class .. < ActiveRecord::Migration .. def up .. def down .. end
class `substitute( substitute(vim_snippets#Filename(), '^\d\+_', '',''), '\(_\|^\)\(.\)', '\u\2', 'g')` < ActiveRecord::Migration
def up