2000-06-06 05:53:49 +00:00
|
|
|
Content-type: text/html
|
|
|
|
|
|
|
|
<HTML><HEAD><TITLE>Manpage of NANO</TITLE>
|
|
|
|
</HEAD><BODY>
|
|
|
|
<H1>NANO</H1>
|
2002-11-04 16:05:42 +00:00
|
|
|
Section: User Commands (1)<BR>Updated: November 1, 2002<BR><A HREF="#index">Index</A>
|
2000-06-06 05:53:49 +00:00
|
|
|
<A HREF="http://localhost/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
|
|
<H2>NAME</H2>
|
|
|
|
|
2003-01-17 03:06:28 +00:00
|
|
|
nano - Nano's ANOther editor, an enhanced free Pico clone
|
2000-06-06 05:53:49 +00:00
|
|
|
<A NAME="lbAC"> </A>
|
|
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
|
|
|
|
<B>nano</B>
|
|
|
|
|
2002-07-19 01:08:59 +00:00
|
|
|
<I>[+LINE] [options] [file]</I>
|
2000-06-06 05:53:49 +00:00
|
|
|
|
|
|
|
<BR>
|
|
|
|
|
|
|
|
<A NAME="lbAD"> </A>
|
|
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
|
2002-07-19 01:08:59 +00:00
|
|
|
This manual page documents briefly the <B>nano</B> command.
|
2000-06-06 05:53:49 +00:00
|
|
|
<P>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2000-12-03 03:23:16 +00:00
|
|
|
<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
|
2002-07-19 01:08:59 +00:00
|
|
|
than just copying Pico's look and feel, <B>nano</B> also implements some
|
|
|
|
missing (or disabled by default) features in Pico, such as "search and
|
|
|
|
replace" and "go to line number".
|
2000-06-06 05:53:49 +00:00
|
|
|
<A NAME="lbAE"> </A>
|
|
|
|
<H2>OPTIONS</H2>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
2002-07-19 01:08:59 +00:00
|
|
|
<DT><B>+</B><I>LINE</I>
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
Places cursor at <I>LINE</I> on startup.
|
2002-06-28 22:45:14 +00:00
|
|
|
<DT><B>-B (--backup)</B>
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
When saving a file, back up the previous version of it to the current
|
|
|
|
filename suffixed with a ~.
|
2001-10-04 01:24:07 +00:00
|
|
|
<DT><B>-D (--dos)</B>
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
Write file in DOS format.
|
2001-07-15 16:07:23 +00:00
|
|
|
<DT><B>-F (--multibuffer)</B>
|
|
|
|
|
|
|
|
<DD>
|
2002-06-28 22:45:14 +00:00
|
|
|
Enable multiple file buffers, if available.
|
2003-01-17 03:06:28 +00:00
|
|
|
<DT><B>-H (--historylog)</B>
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
Log search and replace strings to ~/.nano_history so they may be
|
|
|
|
stored for later editing, if nanorc support is configured.
|
2002-07-20 13:57:41 +00:00
|
|
|
<DT><B>-I (--ignorercfiles)</B>
|
|
|
|
|
|
|
|
<DD>
|
2002-11-04 16:05:42 +00:00
|
|
|
Don't look at $SYSCONFDIR/nanorc or ~/.nanorc, if nanorc support is
|
|
|
|
available.
|
2002-01-05 04:08:01 +00:00
|
|
|
<DT><B>-K (--keypad)</B>
|
|
|
|
|
|
|
|
<DD>
|
2002-11-04 16:05:42 +00:00
|
|
|
Do not use the ncurses keypad() call unless necessary. Try this flag if
|
|
|
|
you find that the arrow keys on the numeric keypad do not work for you
|
2002-01-05 04:08:01 +00:00
|
|
|
under nano.
|
2001-10-04 01:24:07 +00:00
|
|
|
<DT><B>-M (--mac)</B>
|
2000-06-21 03:00:43 +00:00
|
|
|
|
|
|
|
<DD>
|
2001-10-04 01:24:07 +00:00
|
|
|
Write file in Mac format.
|
2002-03-04 12:15:44 +00:00
|
|
|
<DT><B>-N (--noconvert)</B>
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
Disable automatic conversion of files from DOS/Mac format.
|
2003-02-04 14:24:54 +00:00
|
|
|
<DT><B>-Q </B><I>str</I> (--quotestr=<I>str</I>)
|
2002-03-04 12:15:44 +00:00
|
|
|
|
|
|
|
<DD>
|
2002-08-21 16:10:37 +00:00
|
|
|
Set the quoting string for justifying. The default is
|
|
|
|
"^([ \t]*[|>:}#])+" if regular expression support is available, or
|
|
|
|
"> " otherwise.
|
2000-07-07 04:20:09 +00:00
|
|
|
<DT><B>-R (--regexp)</B>
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
Enable regular expression matching for search strings, as well as
|
|
|
|
\n subexpression replacement for replace strings, if available.
|
2001-10-04 01:24:07 +00:00
|
|
|
<DT><B>-S (--smooth)</B>
|
2000-06-06 05:53:49 +00:00
|
|
|
|
|
|
|
<DD>
|
2001-10-04 01:24:07 +00:00
|
|
|
Enable smooth scrolling. Text will scroll line-by-line, instead of the
|
2002-07-19 01:08:59 +00:00
|
|
|
usual chunk-by-chunk behavior.
|
2003-02-04 14:24:54 +00:00
|
|
|
<DT><B>-T </B><I>num</I> (--tabsize=<I>num</I>)
|
2000-06-06 05:53:49 +00:00
|
|
|
|
|
|
|
<DD>
|
2001-10-04 01:24:07 +00:00
|
|
|
Set the size (width) of a tab.
|
|
|
|
<DT><B>-V (--version)</B>
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
Show the current version number and author.
|
2003-02-04 14:24:54 +00:00
|
|
|
<DT><B>-Y </B><I>str</I> (--syntax=<I>str</I>)
|
2002-05-11 03:04:44 +00:00
|
|
|
|
|
|
|
<DD>
|
2002-06-28 22:45:14 +00:00
|
|
|
Specify a specific syntax highlighting from the .nanorc to use, if
|
|
|
|
available.
|
2000-06-06 05:53:49 +00:00
|
|
|
<DT><B>-c (--const)</B>
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
Constantly show the cursor position.
|
2001-10-04 01:24:07 +00:00
|
|
|
<DT><B>-h (--help)</B>
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
Display a summary of command line options.
|
2000-06-06 05:53:49 +00:00
|
|
|
<DT><B>-i (--autoindent)</B>
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
Indent new lines to the previous line's indentation. Useful when editing
|
|
|
|
source code.
|
2001-04-30 11:23:33 +00:00
|
|
|
<DT><B>-k (--cut)</B>
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
Enable cut from cursor to end of line with ^K.
|
2000-06-06 05:53:49 +00:00
|
|
|
<DT><B>-l (--nofollow)</B>
|
|
|
|
|
|
|
|
<DD>
|
2002-04-06 05:02:14 +00:00
|
|
|
If the file being edited is a symbolic link, replace the link with
|
2001-05-05 17:45:54 +00:00
|
|
|
a new file, do not follow it. Good for editing files in /tmp, perhaps?
|
2000-06-06 05:53:49 +00:00
|
|
|
<DT><B>-m (--mouse)</B>
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
Enable mouse support (if available for your system).
|
2003-02-04 14:24:54 +00:00
|
|
|
<DT><B>-o </B><I>dir</I> (--operatingdir=<I>dir</I>)
|
2001-10-04 01:24:07 +00:00
|
|
|
|
|
|
|
<DD>
|
2002-06-28 22:45:14 +00:00
|
|
|
Set operating directory. Makes nano set up something similar to a
|
|
|
|
chroot.
|
2003-01-17 03:06:28 +00:00
|
|
|
<DT><B>-p (--preserve)</B>
|
2000-06-06 05:53:49 +00:00
|
|
|
|
|
|
|
<DD>
|
2003-01-17 03:06:28 +00:00
|
|
|
Preserve the XON and XOFF sequences (^Q and ^S) so they will be
|
|
|
|
caught by the terminal.
|
2003-02-04 14:24:54 +00:00
|
|
|
<DT><B>-r </B><I>cols</I> (--fill=<I>cols</I>)
|
2001-04-30 11:23:33 +00:00
|
|
|
|
|
|
|
<DD>
|
2003-02-04 14:24:54 +00:00
|
|
|
Wrap lines at column <I>cols</I>. By default, this is the width of the
|
2002-06-28 22:45:14 +00:00
|
|
|
screen, less eight. If this value is negative, wrapping will occur at
|
2003-02-04 14:24:54 +00:00
|
|
|
<I>cols</I> columns from the right of the screen, allowing the wrap point
|
|
|
|
to vary along with the screen width if resized.
|
|
|
|
<DT><B>-s </B><I>prog</I> (--speller=<I>prog</I>)
|
2000-06-06 05:53:49 +00:00
|
|
|
|
|
|
|
<DD>
|
|
|
|
Enable alternative spell checker command.
|
|
|
|
<DT><B>-t (--tempfile)</B>
|
|
|
|
|
|
|
|
<DD>
|
2001-05-05 17:45:54 +00:00
|
|
|
Always save changed buffer without prompting. Same as Pico -t option.
|
2000-06-06 05:53:49 +00:00
|
|
|
<DT><B>-v (--view)</B>
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
View file (read only) mode.
|
|
|
|
<DT><B>-w (--nowrap)</B>
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
Disable wrapping of long lines.
|
|
|
|
<DT><B>-x (--nohelp)</B>
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
Disable help screen at bottom of editor.
|
|
|
|
<DT><B>-z (--suspend)</B>
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
Enable suspend ability.
|
2001-10-04 01:24:07 +00:00
|
|
|
<DT><B>-a, -b, -e, -f, -g, -j</B>
|
2000-12-18 02:23:50 +00:00
|
|
|
|
|
|
|
<DD>
|
|
|
|
Ignored, for compatibility with Pico.
|
2000-06-06 05:53:49 +00:00
|
|
|
</DL>
|
|
|
|
<A NAME="lbAF"> </A>
|
2003-02-04 14:24:54 +00:00
|
|
|
<H2>INITIALIZATION FILE</H2>
|
|
|
|
|
|
|
|
<B>nano</B> will read initialization files in the following
|
|
|
|
order: $SYSCONFDIR/nanorc, then ~/.nanorc. Please see the example
|
|
|
|
file <B>nanorc.sample</B> which should be provided with <B>nano</B>.
|
|
|
|
All lines beginning with a hash symbol (
|
|
|
|
#
|
|
|
|
) are considered comments
|
|
|
|
and will be ignored. The following commands are understood in the
|
|
|
|
initialization file:
|
|
|
|
<DL COMPACT>
|
|
|
|
<DT><B>[un]set </B><I>option</I> [<I>value</I>]
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
Set (or unset) the flag <I>option</I>. Any long option listed above can
|
|
|
|
be set or unset by removing the leading dashes (e.g. "set nowrap"). If
|
|
|
|
the option takes an argument it will be set to <I>value</I>.
|
|
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
|
|
|
|
<B>COLOR SYNTAX HIGHLIGHTING</B> (if supported by your curses library)
|
|
|
|
<P>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
|
|
<DT><B>syntax </B><I>str</I> [<I>fileregex</I> ... ]
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
Defines a syntax named <I>str</I> which can be activated via the
|
|
|
|
<B>-Y</B> flag, or will be automatically activated if the current
|
|
|
|
filename matches <I>fileregex</I>. All following <B>color</B> statements
|
|
|
|
will apply to <I>syntax</I> until a new syntax is defined.
|
|
|
|
<DT><B>color </B><I>fgcolor</I>[,<I>bgcolor</I>] <I>regex</I> ...
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
For the currently defined syntax, display all expressions matching
|
|
|
|
<I>regex</I> with foreground color <I>fgcolor</I> and optional background
|
|
|
|
color <I>bgcolor</I>. Legal colors for foreground and background color are:
|
|
|
|
white, black, red, blue, green, yellow, magenta, and cyan. You may use
|
|
|
|
the prefix "bright" to force a stronger color highlight. If your
|
|
|
|
terminal supports transparency, not specifying a <I>bgcolor</I> tells
|
|
|
|
<B>nano</B> to attempt to use a transparent background.
|
|
|
|
<DT><B>color </B><I>fgcolor</I>[,<I>bgcolor</I>] start=<I>sr</I> end=<I>er</I>
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
Display expressions which start with <I>sr</I> and end with <I>er</I>
|
|
|
|
with foreground color <I>fgcolor</I> and optional
|
|
|
|
background color <I>bgcolor</I>. This allows syntax highlighting to span
|
|
|
|
multiple lines. Note that all subsequent instances of <I>sr</I> after
|
|
|
|
an initial <I>sr</I> is found will be highlighted until the first
|
|
|
|
instance of <I>er</I>.
|
|
|
|
<I>
|
|
|
|
</DL>
|
|
|
|
</I><A NAME="lbAG"> </A>
|
2000-12-03 03:23:16 +00:00
|
|
|
<H2>NOTES</H2>
|
|
|
|
|
2002-07-19 01:08:59 +00:00
|
|
|
<B>nano</B> will try to dump the buffer into an emergency file in some
|
2002-10-17 02:19:31 +00:00
|
|
|
cases. Mainly, this will happen if <B>nano</B> receives a SIGHUP or
|
|
|
|
SIGTERM or runs out of memory, when it will write the buffer into a file
|
|
|
|
named "nano.save" if the buffer didn't have a name already, or will add
|
|
|
|
a ".save" suffix to the current filename. If an emergency file with that
|
2002-07-19 01:08:59 +00:00
|
|
|
name already exists in the current directory, ".save" and a number (e.g.
|
|
|
|
".save.1") will be suffixed to the current filename in order to make it
|
|
|
|
unique. In multibuffer mode, <B>nano</B> will write all the open buffers
|
|
|
|
to the respective emergency files.
|
2003-02-04 14:24:54 +00:00
|
|
|
<A NAME="lbAH"> </A>
|
2000-06-06 05:53:49 +00:00
|
|
|
<H2>BUGS</H2>
|
|
|
|
|
|
|
|
Please send any comments or bug reports to
|
2000-12-03 03:23:16 +00:00
|
|
|
<BR>
|
|
|
|
|
2000-09-27 03:16:11 +00:00
|
|
|
<B><A HREF="mailto:nano@nano-editor.org">nano@nano-editor.org</A>.</B>
|
2000-06-06 05:53:49 +00:00
|
|
|
|
2000-12-03 03:23:16 +00:00
|
|
|
<BR>
|
|
|
|
|
2002-07-19 01:08:59 +00:00
|
|
|
The <B>nano</B> mailing list is available from
|
2000-12-03 03:23:16 +00:00
|
|
|
<BR>
|
|
|
|
|
2002-02-01 13:40:34 +00:00
|
|
|
<B><A HREF="mailto:nano-devel@gnu.org">nano-devel@gnu.org</A>.</B>
|
2000-06-06 05:53:49 +00:00
|
|
|
|
2002-02-01 13:40:34 +00:00
|
|
|
To subscribe, email to <A HREF="mailto:nano-devel-request@gnu.org">nano-devel-request@gnu.org</A> with a
|
2000-06-06 05:53:49 +00:00
|
|
|
subject of "subscribe".
|
2003-02-04 14:24:54 +00:00
|
|
|
<A NAME="lbAI"> </A>
|
2000-06-06 05:53:49 +00:00
|
|
|
<H2>HOMEPAGE</H2>
|
|
|
|
|
2000-09-27 03:16:11 +00:00
|
|
|
<A HREF="http://www.nano-editor.org">http://www.nano-editor.org</A>
|
2003-02-04 14:24:54 +00:00
|
|
|
<A NAME="lbAJ"> </A>
|
2000-06-06 05:53:49 +00:00
|
|
|
<H2>AUTHOR</H2>
|
|
|
|
|
2001-10-04 01:24:07 +00:00
|
|
|
Chris Allegretta <<A HREF="mailto:chrisa@asty.org">chrisa@asty.org</A>>, et al (see AUTHORS and THANKS for
|
|
|
|
details).
|
2000-12-03 03:23:16 +00:00
|
|
|
This manual page was originally written by Jordi Mallach
|
2002-05-11 03:04:44 +00:00
|
|
|
<<A HREF="mailto:jordi@sindominio.net">jordi@sindominio.net</A>>, for the Debian GNU system (but may be
|
2000-12-03 03:23:16 +00:00
|
|
|
used by others).
|
2000-06-06 05:53:49 +00:00
|
|
|
<P>
|
|
|
|
|
|
|
|
<HR>
|
|
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
|
|
<DL>
|
|
|
|
<DT><A HREF="#lbAB">NAME</A><DD>
|
|
|
|
<DT><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
|
|
<DT><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
|
|
<DT><A HREF="#lbAE">OPTIONS</A><DD>
|
2003-02-04 14:24:54 +00:00
|
|
|
<DT><A HREF="#lbAF">INITIALIZATION FILE</A><DD>
|
|
|
|
<DT><A HREF="#lbAG">NOTES</A><DD>
|
|
|
|
<DT><A HREF="#lbAH">BUGS</A><DD>
|
|
|
|
<DT><A HREF="#lbAI">HOMEPAGE</A><DD>
|
|
|
|
<DT><A HREF="#lbAJ">AUTHOR</A><DD>
|
2000-06-06 05:53:49 +00:00
|
|
|
</DL>
|
|
|
|
<HR>
|
|
|
|
This document was created by
|
|
|
|
<A HREF="http://localhost/cgi-bin/man/man2html">man2html</A>,
|
|
|
|
using the manual pages.<BR>
|
2003-02-04 14:24:54 +00:00
|
|
|
Time: 14:15:34 GMT, February 04, 2003
|
2000-06-06 05:53:49 +00:00
|
|
|
</BODY>
|
|
|
|
</HTML>
|