Surround docs grammar fix and other cleanup

This commit is contained in:
Tim Pope 2008-01-25 18:22:00 +00:00
parent afd585e84c
commit dff474073c

View File

@ -170,9 +170,9 @@ replacements.
< <
Advanced, experimental, and subject to change: One can also prompt for Advanced, experimental, and subject to change: One can also prompt for
replacement text. The syntax for this is to surround the replacement in pairs replacement text. The syntax for this is to surround the replacement in pairs
of low numbered controller characters. If this sounds confusing, that's of low numbered control characters. If this sounds confusing, that's because
because it is (but it makes the parsing easy). Consider the following example it is (but it makes the parsing easy). Consider the following example for a
for a LaTeX environment on the "l" replacement. LaTeX environment on the "l" replacement.
> >
let g:surround_108 = "\\begin{\1environment: \1}\r\\end{\1\1}" let g:surround_108 = "\\begin{\1environment: \1}\r\\end{\1\1}"
< <
@ -210,15 +210,9 @@ end of the line. Please report any repeatable instances of this.
Do we need to use |inputsave()|/|inputrestore()| with the tag replacement? Do we need to use |inputsave()|/|inputrestore()| with the tag replacement?
Customization isn't very flexible. Need a system that allows for prompting,
like with HTML tags and LaTeX environments. (There is an experimental
interface for this now).
Indenting is handled haphazardly. Need to decide the most appropriate Indenting is handled haphazardly. Need to decide the most appropriate
behavior and implement it. Right now one can do :let b:surround_indent = 1 behavior and implement it. Right now one can do :let b:surround_indent = 1
(or the global equivalent) to enable automatic re-indenting by Vim via |=|; (or the global equivalent) to enable automatic re-indenting by Vim via |=|;
should this be the default? should this be the default?
It would be nice if |.| would work to repeat an operation.
vim:tw=78:ts=8:ft=help:norl: vim:tw=78:ts=8:ft=help:norl: