在Vim中选择不相交的代码块进行拉拽
我想知道我是否能够在Vim中做到这一点: 示例代码:在Vim中选择不相交的代码块进行拉拽,vim,multi-select,Vim,Multi Select,我想知道我是否能够在Vim中做到这一点: 示例代码: require 'abstract_controller/collector' require 'active_support/core_ext/hash/reverse_merge' require 'active_support/core_ext/array/extract_options' require 'IDONTWANTTHISLINETOBEINCLUDEDINMYYANKREGISTER' require 'IDONTWANT
require 'abstract_controller/collector'
require 'active_support/core_ext/hash/reverse_merge'
require 'active_support/core_ext/array/extract_options'
require 'IDONTWANTTHISLINETOBEINCLUDEDINMYYANKREGISTER'
require 'IDONTWANTTHISLINETOBEINCLUDEDINMYYANKREGISTER'
module ActionMailer #:nodoc:
class Collector
include AbstractController::Collector
attr_reader :responses
def initialize(context, &block)
@context = context
@responses = []
@default_render = block
end
def any(*args, &block)
options = args.extract_options!
raise "You have to supply at least one format" if args.empty?
args.each { |type| send(type, options.dup, &block) }
end
alias :all :any
def custom(mime, options={})
options.reverse_merge!(:content_type => mime.to_s)
@context.freeze_formats([mime.to_sym])
options[:body] = block_given? ? yield : @default_render.call
@responses << options
end
end
end
组块2:
module ActionMailer #:nodoc:
class Collector
include AbstractController::Collector
attr_reader :responses
def initialize(context, &block)
@context = context
@responses = []
@default_render = block
end
区块3:
def custom(mime, options={})
options.reverse_merge!(:content_type => mime.to_s)
@context.freeze_formats([mime.to_sym])
options[:body] = block_given? ? yield : @default_render.call
@responses << options
end
end
end
def自定义(mime,选项={})
选项。反向合并!(:content_type=>mime.to_s)
@context.freeze_格式([mime.to_sym])
选项[:body]=给定的块?yield:@default\u render.call
@响应在追加模式下使用寄存器:
- 目视选择前三行,
“ay
- 目视选择接下来的10行,
“Ay
(注意大写字母)
- 目视选择块3,
“Ay
- 转到其他缓冲区,
“ap
你喜欢收银机吗
def custom(mime, options={})
options.reverse_merge!(:content_type => mime.to_s)
@context.freeze_formats([mime.to_sym])
options[:body] = block_given? ? yield : @default_render.call
@responses << options
end
end
end