mirror of
https://github.com/amix/vimrc
synced 2025-06-16 01:25:00 +08:00
Updated all plugins that are non-forked. Added some new plugins.
Added update_plugins.py which can fetch new plugins from GitHub. New plugins added: zencoding, vim-indent-object, taglist, nginx.vim
This commit is contained in:
@ -0,0 +1,3 @@
|
||||
<% content_for :${1:yield_label_in_layout} do -%>
|
||||
${2}
|
||||
<% end -%>
|
@ -0,0 +1 @@
|
||||
<%= collection_select <+object+>, <+method+>, <+collection+>, <+value_method+>, <+text_method+><+, <+[options]+>, <+[html_options]+>+> %>
|
@ -0,0 +1 @@
|
||||
<%= content_tag '${1:DIV}', ${2:content}${3:,options} -%>
|
@ -0,0 +1 @@
|
||||
<% end -%>
|
@ -0,0 +1,3 @@
|
||||
<% form_for @${1:model} do |f| -%>
|
||||
${2}
|
||||
<% end -%>
|
@ -0,0 +1 @@
|
||||
<%= ${1:f}.check_box :${2:attribute} %>
|
@ -0,0 +1,5 @@
|
||||
<% error_messages_for :${1:model} -%>
|
||||
|
||||
<% form_for @${2:model} do |f| -%>
|
||||
${3}
|
||||
<% end -%>
|
@ -0,0 +1 @@
|
||||
<%= ${1:f}.file_field :${2:attribute} %>
|
@ -0,0 +1 @@
|
||||
<%= ${1:f}.hidden_field :${2:attribute} %>
|
@ -0,0 +1 @@
|
||||
<%= ${1:f}.label :${2:attribute}, '${3:$2}' %>
|
@ -0,0 +1 @@
|
||||
<%= ${1:f}.password_field :${2:attribute} %>
|
@ -0,0 +1 @@
|
||||
<%= ${1:f}.radio_button :${2:attribute}, :${3:tag_value} %>
|
@ -0,0 +1 @@
|
||||
<%= ${1:f}.submit "${2:submit}" %>
|
@ -0,0 +1 @@
|
||||
<%= ${1:f}.text_area :${2:attribute} %>
|
@ -0,0 +1 @@
|
||||
<%= ${1:f}.text_field :${2:attribute} %>
|
@ -0,0 +1,3 @@
|
||||
<% fields_for :${1:model}, @$1 do |${2:f}| -%>
|
||||
${3}
|
||||
<% end -%>
|
@ -0,0 +1,3 @@
|
||||
<% for ${2:item} in ${1:list} -%>
|
||||
${3}
|
||||
<% end -%>
|
@ -0,0 +1,3 @@
|
||||
<% form_tag(<+:action => "<+update+>"+><+, {:<+class+> => "<+form+>"}+>) do -%>
|
||||
<++>
|
||||
<% end -%>
|
@ -0,0 +1 @@
|
||||
I18n.t('${1:type.key}')${2}
|
@ -0,0 +1 @@
|
||||
<%= image_tag "${1}"${2} %>
|
@ -0,0 +1 @@
|
||||
<%= javascript_include_tag <+:all+><+, :cache => <+true+>+> %>
|
@ -0,0 +1 @@
|
||||
<%= javascript_include_tag "${1}" %>
|
@ -0,0 +1 @@
|
||||
<%= link_to "${1:link text}", :action => "${2:index}" %>
|
@ -0,0 +1 @@
|
||||
<%= link_to "<+link text+>", :action => "<+edit+>", :id => <+@<+item+>+> %>
|
@ -0,0 +1 @@
|
||||
<%= link_to "${1:link text}", :controller => "${2:items}" %>
|
@ -0,0 +1 @@
|
||||
<%= link_to "${1:link text}", :controller => "${2:items}", :action => "${3:index}" %>
|
@ -0,0 +1 @@
|
||||
<%= link_to "<+link text+>", :controller => "<+items+>", :action => "<+edit+>", :id => <+@<+item+>+> %>
|
@ -0,0 +1 @@
|
||||
<%= link_to <+model+>.<+name+>, <+<+model+>_path(<+model+>)+> %>
|
@ -0,0 +1 @@
|
||||
<%= link_to <+"<+link text+>"+>, <+<+parent+>_<+child+>_path(<+@+><+parent+>, <+@+><+child+>)+> %>
|
@ -0,0 +1 @@
|
||||
<%= link_to <+"<+link text+>"+>, <+<+parent+>_<+child+>_path(<+@+><+parent+>)+> %>
|
@ -0,0 +1 @@
|
||||
<%= link_to <+"<+link text+>"+>, <+<+model+>_path(<+@+><+instance+>)+> %>
|
@ -0,0 +1 @@
|
||||
<%= link_to <+"<+link text+>"+>, <+<+model+>s_path+> %>
|
@ -0,0 +1 @@
|
||||
<%= link_to "${1:name}", ${2:dest} %>
|
@ -0,0 +1 @@
|
||||
<%= options_from_collection_for_select <+collection+>, <+value_method+>, <+text_method+><+, <+[selected_value]+>+> %>
|
@ -0,0 +1 @@
|
||||
<%= render :file => "${1:file}"${2} %>
|
@ -0,0 +1 @@
|
||||
<%= render :partial => "${1:file}"${2} %>
|
@ -0,0 +1 @@
|
||||
<%= render :template => "${1:file}"${2} %>
|
@ -0,0 +1 @@
|
||||
<%= stylesheet_link_tag <+:all+><+, :cache => <+true+>+> %>
|
@ -0,0 +1 @@
|
||||
<%= stylesheet_link_tag "${1}" %>
|
@ -0,0 +1 @@
|
||||
<%= submit_tag "<+Save changes+>"<+, :id => "<+submit+>"+><+, :name => "<+submit+>"+><+, :class => "<+form_name+>"+><+, :disabled => <+false+>+><+, :disable_with => "<+Please wait+>"+> %>
|
Reference in New Issue
Block a user