From 9f4c479cc0e7ef60b02ea383b44ab7cb26b7e6d7 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 6 Mar 2007 07:58:34 +0000 Subject: [PATCH] Reorder EXAMPLES section. --- man/ChangeLog | 4 +++ man/update-alternatives.8 | 66 ++++++++++++++++----------------------- 2 files changed, 31 insertions(+), 39 deletions(-) diff --git a/man/ChangeLog b/man/ChangeLog index f5cae615..eccf09b4 100644 --- a/man/ChangeLog +++ b/man/ChangeLog @@ -1,3 +1,7 @@ +2007-03-06 Guillem Jover + + * update-alternatives.8: Reorder EXAMPLES section. + 2007-03-06 Guillem Jover * cleanup-info.8: Unify the summary. diff --git a/man/update-alternatives.8 b/man/update-alternatives.8 index dbb4bff8..0200614b 100644 --- a/man/update-alternatives.8 +++ b/man/update-alternatives.8 @@ -200,45 +200,6 @@ When a link group is in manual mode, the alternatives system will not make any changes to the system administrator's settings. . -.SH EXAMPLES -There are several packages which provide a text editor compatible -with -.BR vi , -for example -.BR nvi -and -.BR vim . -Which one is used is controlled by the link group -.BR vi , -which includes links for the program itself and the associated manpage. -.PP -To display the available packages which provide -.B vi -and the current setting for it, use the -.I \-\-display -action: -.RS -.PP -.BR "update\-alternatives \-\-display" vi -.RE -.PP -To choose a particular -.B vi -implementation, use this command as root and then select a number -from the list: -.RS -.PP -.BR "update\-alternatives \-\-config" vi -.RE -.PP -To go back to having the -.B vi -implementation chosen automatically, do this as root: -.RS -.PP -.BR "update\-alternatives \-\-auto" vi -.RE -. .SH COMMANDS .TP \fB\-\-install\fR \fIgenname symlink altern priority\fR [\fB\-\-slave\fR \fIgenname symlink altern\fR] ... @@ -392,6 +353,33 @@ returns an exit status of 2. These diagnostics should be self-explanatory; if you do not find them so, please report this as a bug. . +.SH EXAMPLES +There are several packages which provide a text editor compatible +with \fBvi\fP, for example \fBnvi\fP and \fBvim\fP. Which one is used +is controlled by the link group \fBvi\fP, which includes links for the +program itself and the associated manpage. +.PP +To display the available packages which provide \fBvi\fP and the current +setting for it, use the \fI\-\-display\fP action: +.RS +.PP +.B update\-alternatives \-\-display vi +.RE +.PP +To choose a particular \fBvi\fP implementation, use this command as root +and then select a number from the list: +.RS +.PP +.B update\-alternatives \-\-config vi +.RE +.PP +To go back to having the \fBvi\fP implementation chosen automatically, do +this as root: +.RS +.PP +.B update\-alternatives \-\-auto vi +.RE +. .SH BUGS If you find a bug, please report it using the Debian bug-tracking system, or, if that is not possible, email the author directly. -- 2.39.5