mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 21:01:24 +03:00
tweaks: consistently use .sp instead of .PP to insert a blank line
And use plain .P to start a new paragraph.
This commit is contained in:
parent
f8e0320722
commit
84d21b0972
@ -57,18 +57,18 @@ Consecutive \fB^K\fRs will put all deleted lines together in the cutbuffer.
|
|||||||
Any cursor movement or executing any other command will cause the next
|
Any cursor movement or executing any other command will cause the next
|
||||||
\fB^K\fR to overwrite the cutbuffer. A \fB^U\fR will paste the current
|
\fB^K\fR to overwrite the cutbuffer. A \fB^U\fR will paste the current
|
||||||
contents of the cutbuffer at the current cursor position.
|
contents of the cutbuffer at the current cursor position.
|
||||||
.PP
|
.sp
|
||||||
When a more precise piece of text needs to be cut or copied, one can mark
|
When a more precise piece of text needs to be cut or copied, one can mark
|
||||||
its start with \fB^6\fR, move the cursor to its end (the marked text will be
|
its start with \fB^6\fR, move the cursor to its end (the marked text will be
|
||||||
highlighted), and then use \fB^K\fR to cut it, or \fBM\-6\fR to copy it to the
|
highlighted), and then use \fB^K\fR to cut it, or \fBM\-6\fR to copy it to the
|
||||||
cutbuffer. One can also save the marked text to a file with \fB^O\fR, or
|
cutbuffer. One can also save the marked text to a file with \fB^O\fR, or
|
||||||
spell check it with \fB^T\fR.
|
spell check it with \fB^T\fR.
|
||||||
.PP
|
.sp
|
||||||
On some terminals, text can be selected also by holding down Shift while
|
On some terminals, text can be selected also by holding down Shift while
|
||||||
using the arrow keys. Holding down the Ctrl or Alt key too will increase
|
using the arrow keys. Holding down the Ctrl or Alt key too will increase
|
||||||
the stride.
|
the stride.
|
||||||
Any cursor movement without Shift being held will cancel such a selection.
|
Any cursor movement without Shift being held will cancel such a selection.
|
||||||
.PP
|
.sp
|
||||||
The two lines at the bottom of the screen show some important commands;
|
The two lines at the bottom of the screen show some important commands;
|
||||||
the built-in help (\fB^G\fR) lists all the available ones.
|
the built-in help (\fB^G\fR) lists all the available ones.
|
||||||
The default key bindings can be changed via a \fInanorc\fR file -- see
|
The default key bindings can be changed via a \fInanorc\fR file -- see
|
||||||
@ -356,5 +356,5 @@ the environment variable \fBNANO_NOCATCH\fR.
|
|||||||
|
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR nanorc (5)
|
.BR nanorc (5)
|
||||||
.PP
|
.sp
|
||||||
\fI/usr/share/doc/nano/\fP (or equivalent on your system)
|
\fI/usr/share/doc/nano/\fP (or equivalent on your system)
|
||||||
|
12
doc/nanorc.5
12
doc/nanorc.5
@ -45,20 +45,20 @@ commands, which can be used to configure nano on startup without using
|
|||||||
command-line options. Additionally, there are some commands to define
|
command-line options. Additionally, there are some commands to define
|
||||||
syntax highlighting and to rebind keys -- see the two separate sections
|
syntax highlighting and to rebind keys -- see the two separate sections
|
||||||
on those. \fBnano\fP reads one command per line.
|
on those. \fBnano\fP reads one command per line.
|
||||||
.PP
|
.sp
|
||||||
Options in \fInanorc\fP files take precedence over nano's defaults, and
|
Options in \fInanorc\fP files take precedence over nano's defaults, and
|
||||||
command-line options override \fInanorc\fP settings. Also, options that
|
command-line options override \fInanorc\fP settings. Also, options that
|
||||||
do not take an argument are unset by default. So using the \fBunset\fR
|
do not take an argument are unset by default. So using the \fBunset\fR
|
||||||
command is only needed when wanting to override a setting of the system's
|
command is only needed when wanting to override a setting of the system's
|
||||||
\fInanorc\fR file in your own \fInanorc\fR. Options that take an
|
\fInanorc\fR file in your own \fInanorc\fR. Options that take an
|
||||||
argument cannot be unset.
|
argument cannot be unset.
|
||||||
.PP
|
.sp
|
||||||
Below, the \fIstring\fR parameters need to be enclosed in double quotes.
|
Below, the \fIstring\fR parameters need to be enclosed in double quotes.
|
||||||
Quotes inside these string parameters don't have to be escaped with
|
Quotes inside these string parameters don't have to be escaped with
|
||||||
backslashes. The last double quote in the string will be treated as its
|
backslashes. The last double quote in the string will be treated as its
|
||||||
end. For example, for the \fBbrackets\fP option, "\fB"')>]}\fP" will
|
end. For example, for the \fBbrackets\fP option, "\fB"')>]}\fP" will
|
||||||
match \fB"\fP, \fB'\fP, \fB)\fP, \fB>\fP, \fB]\fP, and \fB}\fP.
|
match \fB"\fP, \fB'\fP, \fB)\fP, \fB>\fP, \fB]\fP, and \fB}\fP.
|
||||||
.PP
|
.sp
|
||||||
The supported commands and arguments are:
|
The supported commands and arguments are:
|
||||||
|
|
||||||
.TP 3
|
.TP 3
|
||||||
@ -434,14 +434,14 @@ a more general mechanism: the filtering of buffer or marked text through
|
|||||||
an external command. Such filtering is done by typing \fB^R^X\fR and then
|
an external command. Such filtering is done by typing \fB^R^X\fR and then
|
||||||
preceding your formatter command with the pipe symbol (\fB|\fR). It has
|
preceding your formatter command with the pipe symbol (\fB|\fR). It has
|
||||||
the added advantage that the operation can be undone.
|
the added advantage that the operation can be undone.
|
||||||
.PP
|
.sp
|
||||||
If you use such a formatting command regularly, you could assign the relevant
|
If you use such a formatting command regularly, you could assign the relevant
|
||||||
series of keystrokes to a single key in your nanorc:
|
series of keystrokes to a single key in your nanorc:
|
||||||
.PP
|
.sp
|
||||||
.RS
|
.RS
|
||||||
.B "bind M\-F \(dq^R^X|yourformatcommand^M\(dq main"
|
.B "bind M\-F \(dq^R^X|yourformatcommand^M\(dq main"
|
||||||
.RE
|
.RE
|
||||||
.PP
|
.sp
|
||||||
(Note that the \fB^R\fR, \fB^X\fR, and \fB^M\fR are each a single, literal
|
(Note that the \fB^R\fR, \fB^X\fR, and \fB^M\fR are each a single, literal
|
||||||
control character. You can enter them by preceding each with \fBM\-V\fR.)
|
control character. You can enter them by preceding each with \fBM\-V\fR.)
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ rnano \- a restricted nano
|
|||||||
\fBrnano\fR runs the \fBnano\fR editor in restricted mode. This allows
|
\fBrnano\fR runs the \fBnano\fR editor in restricted mode. This allows
|
||||||
editing only the specified file or files, and doesn't allow the user
|
editing only the specified file or files, and doesn't allow the user
|
||||||
access to the filesystem nor to a command shell.
|
access to the filesystem nor to a command shell.
|
||||||
.PP
|
.sp
|
||||||
In restricted mode, \fBnano\fR will:
|
In restricted mode, \fBnano\fR will:
|
||||||
.IP \[bu] 2
|
.IP \[bu] 2
|
||||||
not allow suspending;
|
not allow suspending;
|
||||||
@ -46,7 +46,7 @@ not make backup files nor do spell checking.
|
|||||||
.TP
|
.TP
|
||||||
.BR \-h ", " \-\-help
|
.BR \-h ", " \-\-help
|
||||||
Show the available command-line options and exit.
|
Show the available command-line options and exit.
|
||||||
.PP
|
.P
|
||||||
For all existing options, see the \fBnano\fR(1) man page.
|
For all existing options, see the \fBnano\fR(1) man page.
|
||||||
|
|
||||||
.SH BUGS
|
.SH BUGS
|
||||||
|
Loading…
Reference in New Issue
Block a user