Skip to content

Commit

Permalink
Ticket #3918: mcedit.1: undocument a long time ago removed feature.
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Borodin <[email protected]>
  • Loading branch information
yarda authored and aborodin committed Jun 3, 2018
1 parent 3726db2 commit 0ee04e1
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions doc/man/mcedit.1.in
Original file line number Diff line number Diff line change
Expand Up @@ -604,39 +604,6 @@ will be untouched. Default value is
Show full path name in the status line. If disabled (default), only base name of the
file is shown.
.SH MISCELLANEOUS
You can use scanf search and replace to search and replace a C format
string. First take a look at the
.B sscanf
and
.B sprintf
man pages to see what a format string is and how it works. Here's an
example: suppose that you want to replace all occurrences of an open
bracket, three comma separated numbers, and a close bracket, with the
word
.IR apples ,
the third number, the word
.I oranges
and then the second number. You would fill in the Replace dialog box as
follows:
.PP
.nf
.B Enter search string
(%d,%d,%d)
.B Enter replace string
apples %d oranges %d
.B Enter replacement argument order
3,2
.fi
.PP
The last line specifies that the third and then the second number are to
be used in place of the first and second.
.PP
It is advisable to use this feature with Prompt On Replace on, because a
match is thought to be found whenever the number of arguments found
matches the number given, which is not always a real match. Scanf also
treats whitespace as being elastic. Note that the scanf format %[ is
very useful for scanning strings, and whitespace.
.PP
The editor also displays non\-us characters (160+). When editing
binary files, you should set
.B display bits
Expand Down

0 comments on commit 0ee04e1

Please sign in to comment.