1
0
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:
amix
2013-04-13 14:45:21 -03:00
parent 5731b3a420
commit 3f1cdba799
1057 changed files with 33631 additions and 10806 deletions

View File

@ -0,0 +1,3 @@
after(${1::each}) do
${2}
end

View File

@ -0,0 +1 @@
any_number_of_times

View File

@ -0,0 +1 @@
and_return(${1:value})

View File

@ -0,0 +1 @@
and_raise(${1:exception})

View File

@ -0,0 +1 @@
and_return { ${1} }

View File

@ -0,0 +1 @@
and_throw(${1:sym})

View File

@ -0,0 +1 @@
and_yield(${1:values})

View File

@ -0,0 +1 @@
at_least(${1:n}).times

View File

@ -0,0 +1 @@
at_most(${1:n}).times

View File

@ -0,0 +1,3 @@
before(${1::each}) do
${2}
end

View File

@ -0,0 +1 @@
controller_name :${1:controller}

View File

@ -0,0 +1,3 @@
describe "${1:subject}" do
${2}
end

View File

@ -0,0 +1,5 @@
require 'spec_helper'
describe ${1:`Snippet_RubyClassNameFromFilename()`} do
${2}
end

View File

@ -0,0 +1,3 @@
describe ${1:controller}, "${2:GET|POST|PUT|DELETE} ${3:/some/path}${4}" do
${5}
end

View File

@ -0,0 +1,3 @@
describe ${1:Type} do
${2}
end

View File

@ -0,0 +1,3 @@
describe ${1:Type}, "${2:description}" do
${3}
end

View File

@ -0,0 +1 @@
exactly(${1:n}).times

View File

@ -0,0 +1 @@
it_should_behave_like '${1:do something}'

View File

@ -0,0 +1,3 @@
it "${1}" do
${2}
end

View File

@ -0,0 +1 @@
it "should ${1:do something}" do${2}

View File

@ -0,0 +1,24 @@
class ${1:ReverseTo}
def initialize(${2:param})
@$2 = $2
end
def matches?(actual)
@actual = actual
# Satisfy expectation here. Return false or raise an error if it's not met.
${3:@actual.reverse.should == @$2}
true
end
def failure_message
"expected #{@actual.inspect} to ${4} #{@$2.inspect}, but it didn't"
end
def negative_failure_message
"expected #{@actual.inspect} not to ${5} #{@$2.inspect}, but it did"
end
end
def ${6:reverse_to}(${7:expected})
${8}.new($7)
end

View File

@ -0,0 +1 @@
mock_model(${1:model})${2}

View File

@ -0,0 +1,2 @@
${1:var} = mock("${2:mock_name}"${3:, :null_object => true})
${4}

View File

@ -0,0 +1,3 @@
Spec::Runner.configure do |config|
config.mock_with :${1:mocha|flexmock|rr}
end

View File

@ -0,0 +1 @@
once

View File

@ -0,0 +1 @@
require File.dirname(__FILE__) + '/../spec_helper'

View File

@ -0,0 +1,3 @@
shared_examples_for "${1:do something}" do
${2}
end

View File

@ -0,0 +1,2 @@
${1:target}.should == ${2:value}
${3}

View File

@ -0,0 +1,2 @@
${1:target}.should be(${2:result})
${3}

View File

@ -0,0 +1,2 @@
${1:target}.should be_close(${2:result}, ${3:tolerance})
${4}

View File

@ -0,0 +1,2 @@
${1:target}.should be_instance_of(${2:class})
${3}

View File

@ -0,0 +1,2 @@
${1:target}.should be_a_kind_of(${2:class})
${3}

View File

@ -0,0 +1,2 @@
response.should be_redirect
${1}

View File

@ -0,0 +1,2 @@
response.should be_success
${1}

View File

@ -0,0 +1,3 @@
lambda do
${1}
end.should change(${2:target}, :${3:method}).from(${4:old_value}).to(${5:new_value}).by(${6:change})

View File

@ -0,0 +1,2 @@
${1:target}.should match(/${2:regexp}/)
${3}

View File

@ -0,0 +1,2 @@
${1:target}.should eql(${2:value})
${3}

View File

@ -0,0 +1,2 @@
${1:target}.should equal(${2:value})
${3}

View File

@ -0,0 +1,2 @@
${1:target}.should have(${2:num}).${3:things}
${4}

View File

@ -0,0 +1,2 @@
${1:target}.should have_at_least(${2:num}).${3:things}
${4}

View File

@ -0,0 +1,2 @@
${1:target}.should have_at_most(${2:num}).${3:things}
${4}

View File

@ -0,0 +1,2 @@
${1:target}.should have(${2:n}).records
${3}

View File

@ -0,0 +1,2 @@
${1:target}.should_not == ${2:value}
${3}

View File

@ -0,0 +1,2 @@
${1:target}.should_not be(${2:result})
${3}

View File

@ -0,0 +1,2 @@
${1:target}.should_not be_close(${2:result}, ${3:tolerance})
${4}

View File

@ -0,0 +1,2 @@
${1:target}.should_not be_instance_of(${2:klass})
${3}

View File

@ -0,0 +1,2 @@
${1:target}.should_not be_a_kind_of(${2:klass})
${3}

View File

@ -0,0 +1,2 @@
response.should_not be_redirect
${1}

View File

@ -0,0 +1,2 @@
response.should_not be_success
${1}

View File

@ -0,0 +1,3 @@
lambda do
${1}
end.should_not change(${2:target}, :${3:method})

View File

@ -0,0 +1,2 @@
${1:target}.should_not eql(${2:value})
${3}

View File

@ -0,0 +1,2 @@
${1:target}.should_not equal(${2:value})
${3}

View File

@ -0,0 +1,2 @@
${1:target}.should_not match(/${2:regexp}/)
${3}

View File

@ -0,0 +1 @@
${1:target}.should_not be_${2:predicate}

View File

@ -0,0 +1,2 @@
${1:mock}.should_not_receive(:${2:message})${3}
${4}

View File

@ -0,0 +1,2 @@
${1:target}.should_not raise_error(${2:error})
${3}

View File

@ -0,0 +1,2 @@
response.should_not redirect_to(${1:url})
${2}

View File

@ -0,0 +1,2 @@
${1:target}.should_not respond_to(:${2:sym})
${3}

View File

@ -0,0 +1,2 @@
${1:target}.should_not satisfy { |${2:obj}| ${3} }
${4}

View File

@ -0,0 +1,2 @@
lambda { ${1} }.should_not throw_symbol(:${2:symbol})
${3}

View File

@ -0,0 +1 @@
${1:target}.should be_${2:predicate}

View File

@ -0,0 +1,2 @@
${1:mock}.should_receive(:${2:message})${3}
${4}

View File

@ -0,0 +1,2 @@
${1:target}.should raise_error(${2:error})
${3}

View File

@ -0,0 +1,2 @@
response.should redirect_to(${1:url})
${2}

View File

@ -0,0 +1,2 @@
${1:target}.should respond_to(:${2:sym})
${3}

View File

@ -0,0 +1,2 @@
${1:target}.should satisfy { |${2:obj}| ${3} }
${4}

View File

@ -0,0 +1,2 @@
${1:target}.should throw_symble(:${2:symbol})
${3}

View File

@ -0,0 +1,2 @@
response.should render_template(:${1:template})
${2}

View File

@ -0,0 +1 @@
twice

View File

@ -0,0 +1,2 @@
with(${1:args})
${2}