diff --git a/doc/surround.txt b/doc/surround.txt index 674b6a9..fd395d2 100644 --- a/doc/surround.txt +++ b/doc/surround.txt @@ -135,6 +135,16 @@ tag, its attributes are kept in the new tag. End your input with > to discard the those attributes. If is used, the tags will appear on lines by themselves. +If f, F, or is used, Vim prompts for a function name to insert. The target +text will be wrapped in a function call. If f is used, the text is wrapped with +() parentheses; F adds additional spaces inside the parentheses. inserts the +function name inside the parentheses. + + Old text Command New text ~ + "hello" ysWfprint print("hello") + "hello" ysWFprint print( "hello" ) + "hello" ysWprint (print "hello") + If s is used, a leading but not trailing space is added. This is useful for removing parentheses from a function call with csbs.