From 8ae2a809662ff0ef963ea56fb370221a34f22fad Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 12 Feb 2007 01:06:21 +0000 Subject: [PATCH] Another substitution example --- doc/surround.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/surround.txt b/doc/surround.txt index b3305ad..9219708 100644 --- a/doc/surround.txt +++ b/doc/surround.txt @@ -186,6 +186,12 @@ This will remove anything after the first } in the input when the text is placed within the \end{} slot. The first \r marks where the pattern begins, and the second where the replacement text begins. +Here's a second example for creating an HTML
. The substitution cleverly +prompts for an id, but only adds id="" if it is non-blank. You may have to +read this one a few times slowly before you understand it. +> + let g:surround_{char2nr("d")} = "\r
" +< Inputting text replacements is a proof of concept at this point. The ugly, unintuitive interface and the brevity of the documentation reflect this.