Created
October 25, 2012 07:09
-
-
Save honbin/3951065 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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