The manpage for vi(1) has a small error for the :Visual/:visual command.  The
'V' can be capital or lowercase, followed by an 'i' and optionally 'sual'. But
the manpage shows the command as [Vi]i[sual] instead of [Vv]i[sual].

The usage text in vi confirms the correct syntax (as does the roff
documentation).

usr.bin/vi/ex/ex_cmd.c - line 386:

/* C_VISUAL_VI */
        {"visual",      ex_edit,        E_NEWSCREEN,
            "f1o",
            "[Vv]i[sual][!] [+cmd] [file]",
            "edit another file (from vi mode only)"},

Tim.


Index: docs/USD.doc/vi.man/vi.1
===================================================================
RCS file: /cvs/src/usr.bin/vi/docs/USD.doc/vi.man/vi.1,v
retrieving revision 1.74
diff -u -p -r1.74 vi.1
--- docs/USD.doc/vi.man/vi.1    22 Aug 2017 20:27:18 -0000      1.74
+++ docs/USD.doc/vi.man/vi.1    3 Feb 2018 02:02:38 -0000
@@ -2200,7 +2200,7 @@ Enter
 .Nm vi .
 .Pp
 .It Xo
-.Op Cm Vi Ns
+.Op Cm Vv Ns
 .Cm i Ns Op Cm sual Ns
 .Op Cm !\&
 .Op Ar +cmd

Reply via email to