Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/vi/docs Add definition of matchchars



details:   https://anonhg.NetBSD.org/src/rev/82606d41bc25
branches:  trunk
changeset: 551061:82606d41bc25
user:      dsl <dsl%NetBSD.org@localhost>
date:      Thu Aug 28 13:25:13 2003 +0000

description:
Add definition of matchchars

diffstat:

 usr.bin/vi/docs/USD.doc/vi.man/vi.1         |   5 ++++-
 usr.bin/vi/docs/USD.doc/vi.ref/set.opt.roff |   9 ++++++++-
 usr.bin/vi/docs/USD.doc/vi.ref/vi.cmd.roff  |  20 +++++++++++++++-----
 usr.bin/vi/docs/help                        |   1 +
 4 files changed, 28 insertions(+), 7 deletions(-)

diffs (90 lines):

diff -r 9c4b7c438e98 -r 82606d41bc25 usr.bin/vi/docs/USD.doc/vi.man/vi.1
--- a/usr.bin/vi/docs/USD.doc/vi.man/vi.1       Thu Aug 28 13:19:05 2003 +0000
+++ b/usr.bin/vi/docs/USD.doc/vi.man/vi.1       Thu Aug 28 13:25:13 2003 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: vi.1,v 1.8 2002/05/02 14:20:01 fredb Exp $
+.\"    $NetBSD: vi.1,v 1.9 2003/08/28 13:25:14 dsl Exp $
 .\"
 .\" Copyright (c) 1994
 .\"     The Regents of the University of California.  All rights reserved.
@@ -1178,6 +1178,9 @@
 .B "magic [on]"
 Treat certain characters specially in regular expressions.
 .TP
+.B "matchchars [[]{}()<>]"
+Character pairs looked for by the % command.
+.TP
 .B "matchtime [7]"
 .I \&Vi
 only.
diff -r 9c4b7c438e98 -r 82606d41bc25 usr.bin/vi/docs/USD.doc/vi.ref/set.opt.roff
--- a/usr.bin/vi/docs/USD.doc/vi.ref/set.opt.roff       Thu Aug 28 13:19:05 2003 +0000
+++ b/usr.bin/vi/docs/USD.doc/vi.ref/set.opt.roff       Thu Aug 28 13:25:13 2003 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: set.opt.roff,v 1.3 2001/03/31 11:37:48 aymeric Exp $
+.\"    $NetBSD: set.opt.roff,v 1.4 2003/08/28 13:25:15 dsl Exp $
 .\"
 .\" Copyright (c) 1994
 .\"     The Regents of the University of California.  All rights reserved.
@@ -584,6 +584,13 @@
 See the section entitled
 .QB "Regular Expressions and Replacement Strings"
 for more information.
+.KY matchchars
+.IP "matchchars [[]{}()<>]"
+.CO Vi
+only.
+This option defines the character pairs used by the
+.CO %
+command.
 .KY matchtime
 .IP "matchtime [7]"
 .CO Vi
diff -r 9c4b7c438e98 -r 82606d41bc25 usr.bin/vi/docs/USD.doc/vi.ref/vi.cmd.roff
--- a/usr.bin/vi/docs/USD.doc/vi.ref/vi.cmd.roff        Thu Aug 28 13:19:05 2003 +0000
+++ b/usr.bin/vi/docs/USD.doc/vi.ref/vi.cmd.roff        Thu Aug 28 13:25:13 2003 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: vi.cmd.roff,v 1.3 2001/03/31 11:37:48 aymeric Exp $
+.\"    $NetBSD: vi.cmd.roff,v 1.4 2003/08/28 13:25:15 dsl Exp $
 .\"
 .\" Copyright (c) 1994
 .\"    The Regents of the University of California.  All rights reserved.
@@ -1021,13 +1021,23 @@
 .KY %
 .IP %
 Move to the matching character.
-The cursor moves to the parenthesis or curly brace which
+The cursor moves to the bracket character that
 .i matches
-the parenthesis or curly brace found at the current cursor position
+the bracket found at the current cursor position
 or which is the closest one to the right of the cursor on the line.
-It is an error to execute the
+The bracket characters are defined by the
+.OP matchchars
+option.
+An error will be reported if none of the
+.OP matchchars
+characters is found, or if no matching character is found.
+If the open and close brackes are identical (e.g.: if they are
+.QT '
+or
+.QT " ),
+then repeating a
 .CO %
-command on a line without a parenthesis or curly brace.
+command will perform a backwards search from the original opening bracket.
 Historically, any
 .LI count
 specified to the
diff -r 9c4b7c438e98 -r 82606d41bc25 usr.bin/vi/docs/help
--- a/usr.bin/vi/docs/help      Thu Aug 28 13:19:05 2003 +0000
+++ b/usr.bin/vi/docs/help      Thu Aug 28 13:25:13 2003 +0000
@@ -222,6 +222,7 @@
 noextended      mesg            ruler           noterse
 cdpath="/usr/src/local/nvi:/tmp"
 directory="/tmp"
+matchchars["[]{}()<>"
 paragraphs="IPLPPPQPP LIpplpipbp"
 recdir="/var/tmp/vi.recover"
 sections="NHSHH HUnhsh"



Home | Main Index | Thread Index | Old Index