Skip to content

Instantly share code, notes, and snippets.

@honbin
Created October 25, 2012 07:09
Show Gist options
  • Save honbin/3951065 to your computer and use it in GitHub Desktop.
Save honbin/3951065 to your computer and use it in GitHub Desktop.
## surround.vim how to
# ds'
foo 'b*ar' baz #=>foo b*ar baz
# cs'"
foo 'b*ar' baz #=>foo "b*ar" baz
#ys$)
a = Array.new *foo, bar #=> a = Array.new (*foo, bar)
# yss"
string #=> "string"
# S{
my $foo = $self->method;
$foo->bar;
{
my $foo = $self->method;
$foo->bar;
}
# dst
<div><p>hoge</p></div> #=><p>hoge</p>
# cst<span>
<div><p>hoge</p></div> #=><span><p>hoge</p></span>
# ysst<div class="hoge">
<p>hoge</p> #=><div class="hoge"><p>hoge</p></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment