From ca58a2d886cc18734c90c9665da4775d444b0c04 Mon Sep 17 00:00:00 2001 From: Chris AtLee Date: Tue, 26 Mar 2019 14:55:50 -0400 Subject: [PATCH] Documentation for function name replacements (fixes #222) --- doc/surround.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) 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.