summaryrefslogtreecommitdiff
path: root/doc/man/nano.1.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/nano.1.html')
-rw-r--r--doc/man/nano.1.html352
1 files changed, 183 insertions, 169 deletions
diff --git a/doc/man/nano.1.html b/doc/man/nano.1.html
index cb1101e..bd7b43f 100644
--- a/doc/man/nano.1.html
+++ b/doc/man/nano.1.html
@@ -1,5 +1,5 @@
-<!-- Creator : groff version 1.20.1 -->
-<!-- CreationDate: Tue Aug 10 22:44:00 2010 -->
+<!-- Creator : groff version 1.22.2 -->
+<!-- CreationDate: Sun Mar 22 23:46:10 2015 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
@@ -48,22 +48,20 @@ Nano&rsquo;s ANOther editor, an enhanced free Pico clone</p>
<p style="margin-left:11%; margin-top: 1em"><b>nano</b>
-<i>[OPTIONS]&nbsp;[[+LINE,COLUMN]&nbsp;FILE]...</i></p>
+[<i>options</i>]
+[[+<i>line</i>,<i>column</i>]&nbsp;<i>file</i>]...</p>
<h2>DESCRIPTION
<a name="DESCRIPTION"></a>
</h2>
-<p style="margin-left:11%; margin-top: 1em">This manual
-page briefly documents the <b>nano</b> command.</p>
-
<p style="margin-left:11%; margin-top: 1em"><b>nano</b> is
a small, free and friendly editor which aims to replace
Pico, the default editor included in the non-free Pine
-package. Rather than just copying Pico&rsquo;s look and
-feel, <b>nano</b> also implements some missing (or disabled
-by default) features in Pico, such as &quot;search and
+package. On top of copying Pico&rsquo;s look and feel,
+<b>nano</b> also implements some missing (or disabled by
+default) features in Pico, such as &quot;search and
replace&quot; and &quot;go to line and column
number&quot;.</p>
@@ -73,32 +71,15 @@ number&quot;.</p>
-<p style="margin-left:11%; margin-top: 1em"><b>+</b><i>LINE</i><b>,</b><i>COLUMN</i></p>
-
-<p style="margin-left:22%;">Places cursor at line number
-<i>LINE</i> and column number <i>COLUMN</i> (at least one of
-which must be specified) on startup, instead of the default
-of line 1, column 1.</p>
-
-<table width="100%" border="0" rules="none" frame="void"
- cellspacing="0" cellpadding="0">
-<tr valign="top" align="left">
-<td width="11%"></td>
-<td width="3%">
-
-
-<p><b>&minus;?</b></p></td>
-<td width="8%"></td>
-<td width="30%">
+<p style="margin-left:11%; margin-top: 1em"><b>+</b><i>line</i><b>,</b><i>column</i></p>
+<p style="margin-left:22%;">Places the cursor on line
+number <i>line</i> and at column number <i>column</i> (at
+least one of which must be specified) on startup, instead of
+the default line 1, column 1.</p>
-<p>Same as <b>-h (&minus;&minus;help)</b>.</p></td>
-<td width="48%">
-</td></tr>
-</table>
-
-<p style="margin-left:11%;"><b>&minus;A
-(&minus;&minus;smarthome)</b></p>
+<p style="margin-left:11%;"><b>&minus;A</b>,
+<b>&minus;&minus;smarthome</b></p>
<p style="margin-left:22%;">Make the Home key smarter. When
Home is pressed anywhere but at the very beginning of
@@ -107,277 +88,309 @@ that beginning (either forwards or backwards). If the cursor
is already at that position, it will jump to the true
beginning of the line.</p>
-<p style="margin-left:11%;"><b>&minus;B
-(&minus;&minus;backup)</b></p>
+<p style="margin-left:11%;"><b>&minus;B</b>,
+<b>&minus;&minus;backup</b></p>
<p style="margin-left:22%;">When saving a file, back up the
previous version of it to the current filename suffixed with
-a ~.</p>
+a tilde (<b>~</b>).</p>
+
-<p style="margin-left:11%;"><b>&minus;C</b> <i>dir</i>
-<b>(&minus;&minus;backupdir=</b><i>dir</i><b>)</b></p>
+<p style="margin-left:11%;"><b>&minus;C&nbsp;</b><i>directory</i>,
+<b>&minus;&minus;backupdir=</b><i>directory</i></p>
<p style="margin-left:22%;">Set the directory where
-<b>nano</b> puts unique backup files if file backups are
+<b>nano</b> puts unique backup files, if file backups are
enabled.</p>
-<p style="margin-left:11%;"><b>&minus;D
-(&minus;&minus;boldtext)</b></p>
+<p style="margin-left:11%;"><b>&minus;D</b>,
+<b>&minus;&minus;boldtext</b></p>
<p style="margin-left:22%;">Use bold text instead of
reverse video text.</p>
-<p style="margin-left:11%;"><b>&minus;E
-(&minus;&minus;tabstospaces)</b></p>
+<p style="margin-left:11%;"><b>&minus;E</b>,
+<b>&minus;&minus;tabstospaces</b></p>
<p style="margin-left:22%;">Convert typed tabs to
spaces.</p>
-<p style="margin-left:11%;"><b>&minus;F
-(&minus;&minus;multibuffer)</b></p>
+<p style="margin-left:11%;"><b>&minus;F</b>,
+<b>&minus;&minus;multibuffer</b></p>
+
+<p style="margin-left:22%;">Enable multiple file buffers
+(if support for them has been compiled in).</p>
-<p style="margin-left:22%;">Enable multiple file buffers,
-if available.</p>
+<p style="margin-left:11%;"><b>&minus;G</b>,
+<b>&minus;&minus;locking</b></p>
-<p style="margin-left:11%;"><b>&minus;H
-(&minus;&minus;historylog)</b></p>
+<p style="margin-left:22%;">Enable vim-style file locking
+when editing files.</p>
+
+<p style="margin-left:11%;"><b>&minus;H</b>,
+<b>&minus;&minus;historylog</b></p>
<p style="margin-left:22%;">Log search and replace strings
-to <i>~/.nano_history</i>, so they can be retrieved in later
-sessions, if <i>nanorc</i> support is available.</p>
+to <i>~/.nano/search_history</i>, so they can be retrieved
+in later sessions.</p>
-<p style="margin-left:11%;"><b>&minus;I
-(&minus;&minus;ignorercfiles)</b></p>
+<p style="margin-left:11%;"><b>&minus;I</b>,
+<b>&minus;&minus;ignorercfiles</b></p>
-<p style="margin-left:22%;">Don&rsquo;t look at
-<i>SYSCONFDIR/nanorc</i> or <i>~/.nanorc</i>, if
-<i>nanorc</i> support is available.</p>
+<p style="margin-left:22%;">Don&rsquo;t look at the
+system&rsquo;s <b>nanorc</b> nor at <b>~/.nanorc</b>.</p>
-<p style="margin-left:11%;"><b>&minus;K
-(&minus;&minus;rebindkeypad)</b></p>
+<p style="margin-left:11%;"><b>&minus;K</b>,
+<b>&minus;&minus;rebindkeypad</b></p>
<p style="margin-left:22%;">Interpret the numeric keypad
keys so that they all work properly. You should only need to
use this option if they don&rsquo;t, as mouse support
won&rsquo;t work properly with this option enabled.</p>
-<p style="margin-left:11%;"><b>&minus;L
-(&minus;&minus;nonewlines)</b></p>
+<p style="margin-left:11%;"><b>&minus;L</b>,
+<b>&minus;&minus;nonewlines</b></p>
<p style="margin-left:22%;">Don&rsquo;t add newlines to the
ends of files.</p>
-<p style="margin-left:11%;"><b>&minus;N
-(&minus;&minus;noconvert)</b></p>
+<p style="margin-left:11%;"><b>&minus;N</b>,
+<b>&minus;&minus;noconvert</b></p>
<p style="margin-left:22%;">Disable automatic conversion of
files from DOS/Mac format.</p>
-<p style="margin-left:11%;"><b>&minus;O
-(&minus;&minus;morespace)</b></p>
+<p style="margin-left:11%;"><b>&minus;O</b>,
+<b>&minus;&minus;morespace</b></p>
<p style="margin-left:22%;">Use the blank line below the
titlebar as extra editing space.</p>
-<p style="margin-left:11%;"><b>&minus;Q</b> <i>str</i>
-<b>(&minus;&minus;quotestr=</b><i>str</i><b>)</b></p>
+<p style="margin-left:11%;"><b>&minus;P</b>,
+<b>&minus;&minus;poslog</b></p>
+
+<p style="margin-left:22%;">Log and later read back the
+location of the cursor and place it there again.</p>
+
+<p style="margin-left:11%;"><b>&minus;Q
+&quot;</b><i>characters</i><b>&quot;</b>,
+<b>&minus;&minus;quotestr=&quot;</b><i>characters</i><b>&quot;</b></p>
<p style="margin-left:22%;">Set the quoting string for
justifying. The default is
-&quot;<i>^([&nbsp;\t]*[#:&gt;\|}])+</i>&quot; if extended
+<b>&quot;^([&nbsp;\t]*[#:&gt;\|}])+&quot;</b> if extended
regular expression support is available, or
-&quot;<i>&gt;&nbsp;</i>&quot; otherwise. Note that <i>\t</i>
+<b>&quot;&gt;&nbsp;&quot;</b> otherwise. Note that <b>\t</b>
stands for a Tab.</p>
-<p style="margin-left:11%;"><b>&minus;R
-(&minus;&minus;restricted)</b></p>
+<p style="margin-left:11%;"><b>&minus;R</b>,
+<b>&minus;&minus;restricted</b></p>
<p style="margin-left:22%;">Restricted mode: don&rsquo;t
read or write to any file not specified on the command line;
-read any <i>nanorc</i> files; allow suspending; allow a file
-to be appended to, prepended to, or saved under a different
-name if it already has one; or use backup files or spell
-checking. Also accessible by invoking <b>nano</b> with any
-name beginning with &rsquo;r&rsquo; (e.g.
-&quot;rnano&quot;).</p>
+don&rsquo;t read any <i>nanorc</i> files nor history files;
+don&rsquo;t allow suspending nor spell checking; don&rsquo;t
+allow a file to be appended to, prepended to, or saved under
+a different name if it already has one; and don&rsquo;t use
+backup files. This restricted mode is also accessible by
+invoking <b>nano</b> with any name beginning with
+&rsquo;r&rsquo; (e.g. &quot;rnano&quot;).</p>
-<p style="margin-left:11%;"><b>&minus;S
-(&minus;&minus;smooth)</b></p>
+<p style="margin-left:11%;"><b>&minus;S</b>,
+<b>&minus;&minus;smooth</b></p>
<p style="margin-left:22%;">Enable smooth scrolling. Text
will scroll line-by-line, instead of the usual
chunk-by-chunk behavior.</p>
-<p style="margin-left:11%;"><b>&minus;T</b> <i>cols</i>
-<b>(&minus;&minus;tabsize=</b><i>cols</i><b>)</b></p>
+
+<p style="margin-left:11%;"><b>&minus;T&nbsp;</b><i>number</i>,
+<b>&minus;&minus;tabsize=</b><i>number</i></p>
<p style="margin-left:22%;">Set the size (width) of a tab
-to <i>cols</i> columns. The value of <i>cols</i> must be
+to <i>number</i> columns. The value of <i>number</i> must be
greater than 0. The default value is 8.</p>
-<p style="margin-left:11%;"><b>&minus;U
-(&minus;&minus;quickblank)</b></p>
+<p style="margin-left:11%;"><b>&minus;U</b>,
+<b>&minus;&minus;quickblank</b></p>
<p style="margin-left:22%;">Do quick statusbar blanking.
Statusbar messages will disappear after 1 keystroke instead
-of 25. Note that <b>-c</b> overrides this.</p>
+of 25. Note that <b>&minus;c</b> overrides this.</p>
-<p style="margin-left:11%;"><b>&minus;V
-(&minus;&minus;version)</b></p>
+<p style="margin-left:11%;"><b>&minus;V</b>,
+<b>&minus;&minus;version</b></p>
<p style="margin-left:22%;">Show the current version number
and exit.</p>
-<p style="margin-left:11%;"><b>&minus;W
-(&minus;&minus;wordbounds)</b></p>
+<p style="margin-left:11%;"><b>&minus;W</b>,
+<b>&minus;&minus;wordbounds</b></p>
<p style="margin-left:22%;">Detect word boundaries more
accurately by treating punctuation characters as part of a
word.</p>
-<p style="margin-left:11%;"><b>&minus;Y</b> <i>str</i>
-<b>(&minus;&minus;syntax=</b><i>str</i><b>)</b></p>
-<p style="margin-left:22%;">Specify a specific syntax
-highlighting from the <i>nanorc</i> to use, if
-available.</p>
+<p style="margin-left:11%;"><b>&minus;Y&nbsp;</b><i>name</i>,
+<b>&minus;&minus;syntax=</b><i>name</i></p>
+
+<p style="margin-left:22%;">Specify the name of the syntax
+highlighting to use from among the ones defined in the
+<i>nanorc</i> files.</p>
-<p style="margin-left:11%;"><b>&minus;c
-(&minus;&minus;const)</b></p>
+<p style="margin-left:11%;"><b>&minus;c</b>,
+<b>&minus;&minus;const</b></p>
<p style="margin-left:22%;">Constantly show the cursor
-position. Note that this overrides <b>-U</b>.</p>
+position. Note that this overrides <b>&minus;U</b>.</p>
-<p style="margin-left:11%;"><b>&minus;d
-(&minus;&minus;rebinddelete)</b></p>
+<p style="margin-left:11%;"><b>&minus;d</b>,
+<b>&minus;&minus;rebinddelete</b></p>
<p style="margin-left:22%;">Interpret the Delete key
differently so that both Backspace and Delete work properly.
You should only need to use this option if Backspace acts
like Delete on your system.</p>
-<p style="margin-left:11%;"><b>&minus;h
-(&minus;&minus;help)</b></p>
+<p style="margin-left:11%;"><b>&minus;h</b>,
+<b>&minus;&minus;help</b></p>
-<p style="margin-left:22%;">Show a summary of command line
-options and exit.</p>
+<p style="margin-left:22%;">Show a summary of the available
+command-line options and exit.</p>
-<p style="margin-left:11%;"><b>&minus;i
-(&minus;&minus;autoindent)</b></p>
+<p style="margin-left:11%;"><b>&minus;i</b>,
+<b>&minus;&minus;autoindent</b></p>
<p style="margin-left:22%;">Indent new lines to the
previous line&rsquo;s indentation. Useful when editing
source code.</p>
-<p style="margin-left:11%;"><b>&minus;k
-(&minus;&minus;cut)</b></p>
+<p style="margin-left:11%;"><b>&minus;k</b>,
+<b>&minus;&minus;cut</b></p>
-<p style="margin-left:22%;">Enable cut from cursor to end
-of line.</p>
+<p style="margin-left:22%;">Make the &rsquo;Cut Text&rsquo;
+command (normally ^K) cut from the current cursor position
+to the end of the line, instead of cutting the entire
+line.</p>
-<p style="margin-left:11%;"><b>&minus;l
-(&minus;&minus;nofollow)</b></p>
+<p style="margin-left:11%;"><b>&minus;l</b>,
+<b>&minus;&minus;nofollow</b></p>
<p style="margin-left:22%;">If the file being edited is a
symbolic link, replace the link with a new file instead of
following it. Good for editing files in <i>/tmp</i>,
perhaps?</p>
-<p style="margin-left:11%;"><b>&minus;m
-(&minus;&minus;mouse)</b></p>
+<p style="margin-left:11%;"><b>&minus;m</b>,
+<b>&minus;&minus;mouse</b></p>
<p style="margin-left:22%;">Enable mouse support, if
available for your system. When enabled, mouse clicks can be
used to place the cursor, set the mark (with a double
click), and execute shortcuts. The mouse will work in the X
-Window System, and on the console when gpm is running.</p>
+Window System, and on the console when gpm is running. Text
+can still be selected through dragging by holding down the
+Shift key.</p>
+
+<p style="margin-left:11%;"><b>&minus;n</b>,
+<b>&minus;&minus;noread</b></p>
+
+<p style="margin-left:22%;">Treat any name given on the
+command line as a new file. This allows <b>nano</b> to write
+to named pipes: it will start with a blank buffer, and will
+write to the pipe when the user saves the &quot;file&quot;.
+This way <b>nano</b> can be used as an editor in combination
+with for instance <b>gpg</b> without having to write
+sensitive data to disk first.</p>
-<p style="margin-left:11%;"><b>&minus;o</b> <i>dir</i>
-<b>(&minus;&minus;operatingdir=</b><i>dir</i><b>)</b></p>
-<p style="margin-left:22%;">Set operating directory. Makes
-<b>nano</b> set up something similar to a chroot.</p>
+<p style="margin-left:11%;"><b>&minus;o&nbsp;</b><i>directory</i>,
+<b>&minus;&minus;operatingdir=</b><i>directory</i></p>
-<p style="margin-left:11%;"><b>&minus;p
-(&minus;&minus;preserve)</b></p>
+<p style="margin-left:22%;">Set the operating directory.
+This makes <b>nano</b> set up something similar to a
+chroot.</p>
+
+<p style="margin-left:11%;"><b>&minus;p</b>,
+<b>&minus;&minus;preserve</b></p>
<p style="margin-left:22%;">Preserve the XON and XOFF
sequences (^Q and ^S) so they will be caught by the
terminal.</p>
-<p style="margin-left:11%;"><b>&minus;q
-(&minus;&minus;quiet)</b></p>
+<p style="margin-left:11%;"><b>&minus;q</b>,
+<b>&minus;&minus;quiet</b></p>
<p style="margin-left:22%;">Do not report errors in the
-<i>nanorc</i> file and ask them to be acknowledged by
+<i>nanorc</i> files nor ask them to be acknowledged by
pressing Enter at startup.</p>
-<p style="margin-left:11%;"><b>&minus;r</b> <i>cols</i>
-<b>(&minus;&minus;fill=</b><i>cols</i><b>)</b></p>
-<p style="margin-left:22%;">Wrap lines at column
-<i>cols</i>. If this value is 0 or less, wrapping will occur
-at the width of the screen less <i>cols</i> columns,
+<p style="margin-left:11%;"><b>&minus;r&nbsp;</b><i>number</i>,
+<b>&minus;&minus;fill=</b><i>number</i></p>
+
+<p style="margin-left:22%;">Hard-wrap lines at column
+<i>number</i>. If this value is 0 or less, wrapping will
+occur at the width of the screen less <i>number</i> columns,
allowing the wrap point to vary along with the width of the
screen if the screen is resized. The default value is
-&minus;8.</p>
+&minus;8. This option conflicts with <b>&minus;w</b> -- the
+last one given takes effect.</p>
+
-<p style="margin-left:11%;"><b>&minus;s</b> <i>prog</i>
-<b>(&minus;&minus;speller=</b><i>prog</i><b>)</b></p>
+<p style="margin-left:11%;"><b>&minus;s&nbsp;</b><i>program</i>,
+<b>&minus;&minus;speller=</b><i>program</i></p>
-<p style="margin-left:22%;">Enable alternative spell
+<p style="margin-left:22%;">Use this alternative spell
checker command.</p>
-<p style="margin-left:11%;"><b>&minus;t
-(&minus;&minus;tempfile)</b></p>
+<p style="margin-left:11%;"><b>&minus;t</b>,
+<b>&minus;&minus;tempfile</b></p>
-<p style="margin-left:22%;">Always save changed buffer
-without prompting. Same as Pico&rsquo;s <b>-t</b>
+<p style="margin-left:22%;">Always save a changed buffer
+without prompting. Same as Pico&rsquo;s <b>&minus;t</b>
option.</p>
-<p style="margin-left:11%;"><b>&minus;u
-(&minus;&minus;undo)</b></p>
-
-<p style="margin-left:22%;">Enable experimental
-generic-purpose undo code. By default, the undo and redo
-shortcuts are Meta-U and Meta-E, respectively.</p>
-
-<p style="margin-left:11%;"><b>&minus;v
-(&minus;&minus;view)</b></p>
+<p style="margin-left:11%;"><b>&minus;v</b>,
+<b>&minus;&minus;view</b></p>
-<p style="margin-left:22%;">View file (read only) mode.</p>
+<p style="margin-left:22%;">View-file (read-only) mode.</p>
-<p style="margin-left:11%;"><b>&minus;w
-(&minus;&minus;nowrap)</b></p>
+<p style="margin-left:11%;"><b>&minus;w</b>,
+<b>&minus;&minus;nowrap</b></p>
-<p style="margin-left:22%;">Disable wrapping of long
-lines.</p>
+<p style="margin-left:22%;">Disable the hard-wrapping of
+long lines. This option conflicts with <b>&minus;r</b> --
+the last one given takes effect.</p>
-<p style="margin-left:11%;"><b>&minus;x
-(&minus;&minus;nohelp)</b></p>
+<p style="margin-left:11%;"><b>&minus;x</b>,
+<b>&minus;&minus;nohelp</b></p>
-<p style="margin-left:22%;">Disable help screen at bottom
-of editor.</p>
+<p style="margin-left:22%;">Don&rsquo;t show the two help
+lines at the bottom of the screen.</p>
-<p style="margin-left:11%;"><b>&minus;z
-(&minus;&minus;suspend)</b></p>
+<p style="margin-left:11%;"><b>&minus;z</b>,
+<b>&minus;&minus;suspend</b></p>
-<p style="margin-left:22%;">Enable suspend ability.</p>
+<p style="margin-left:22%;">Enable the suspend ability.</p>
-<p style="margin-left:11%;"><b>&minus;$
-(&minus;&minus;softwrap)</b></p>
+<p style="margin-left:11%;"><b>&minus;$</b>,
+<b>&minus;&minus;softwrap</b></p>
<p style="margin-left:22%;">Enable &rsquo;soft
-wrapping&rsquo;. <b>nano</b> will attempt to display the
-entire contents of a line, even if it is longer than the
-screen width. Since &rsquo;$&rsquo; normally refers to a
+wrapping&rsquo;. This will make <b>nano</b> attempt to
+display the entire contents of any line, even if it is
+longer than the screen width, by continuing it over multiple
+screen lines. Since &rsquo;$&rsquo; normally refers to a
variable in the Unix shell, you should specify this option
last when using other options (e.g. &rsquo;nano
&minus;wS$&rsquo;) or pass it separately (e.g. &rsquo;nano
&minus;wS &minus;$&rsquo;).</p>
-<p style="margin-left:11%;"><b>&minus;a, &minus;b,
-&minus;e, &minus;f, &minus;g, &minus;j</b></p>
+<p style="margin-left:11%;"><b>&minus;a</b>,
+<b>&minus;b</b>, <b>&minus;e</b>, <b>&minus;f</b>,
+<b>&minus;g</b>, <b>&minus;j</b></p>
<p style="margin-left:22%;">Ignored, for compatibility with
Pico.</p>
@@ -388,10 +401,11 @@ Pico.</p>
<p style="margin-left:11%; margin-top: 1em"><b>nano</b>
-will read initialization files in the following order:
-<i>SYSCONFDIR/nanorc</i>, then <i>~/.nanorc</i>. Please see
-<b>nanorc(5)</b> and the example file <b>nanorc.sample</b>,
-both of which should be provided with <b>nano</b>.</p>
+will read initialization files in the following order: the
+system&rsquo;s <b>nanorc</b> (if it exists), and then the
+user&rsquo;s <b>~/.nanorc</b> (if it exists). Please see
+<b>nanorc</b>(5) for more information on the possible
+contents of those files.</p>
<h2>NOTES
<a name="NOTES"></a>
@@ -400,7 +414,7 @@ both of which should be provided with <b>nano</b>.</p>
<p style="margin-left:11%; margin-top: 1em">If no
alternative spell checker command is specified on the
-command line or in one of the <i>nanorc</i> files,
+command line nor in one of the <i>nanorc</i> files,
<b>nano</b> will check the <b>SPELL</b> environment variable
for one.</p>
@@ -458,7 +472,7 @@ email to <b>nano-devel-request@gnu.org</b> with a subject of
<p style="margin-left:11%; margin-top: 1em">Chris
-Allegretta &lt;chrisa@asty.org&gt;, et al (see
+Allegretta &lt;chrisa@asty.org&gt;, et al (see the files
<i>AUTHORS</i> and <i>THANKS</i> for details). This manual
page was originally written by Jordi Mallach
&lt;jordi@gnu.org&gt;, for the Debian system (but may be