2000-12-03 02:46:02 +00:00
|
|
|
.\" Hey, EMACS: -*- nroff -*-
|
2006-03-30 07:07:48 +00:00
|
|
|
.\" nano.1 is Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005,
|
|
|
|
.\" 2006 by Chris Allegretta <chrisa@asty.org>
|
2000-12-03 02:46:02 +00:00
|
|
|
.\"
|
2006-03-30 07:07:48 +00:00
|
|
|
.\" This is free documentation, see the latest version of the GNU
|
|
|
|
.\" General Public License for copying conditions. There is NO
|
|
|
|
.\" warranty.
|
2000-12-03 02:46:02 +00:00
|
|
|
.\"
|
2001-10-03 12:45:22 +00:00
|
|
|
.\" $Id$
|
2006-04-27 19:06:05 +00:00
|
|
|
.TH NANO 1 "version 1.3.12" "April 27, 2006"
|
2000-06-06 05:53:49 +00:00
|
|
|
.\" Please adjust this date whenever revising the manpage.
|
|
|
|
.\"
|
2003-02-09 01:28:40 +00:00
|
|
|
|
2000-06-06 05:53:49 +00:00
|
|
|
.SH NAME
|
2003-01-17 03:06:28 +00:00
|
|
|
nano \- Nano's ANOther editor, an enhanced free Pico clone
|
2003-02-09 01:28:40 +00:00
|
|
|
|
2000-06-06 05:53:49 +00:00
|
|
|
.SH SYNOPSIS
|
|
|
|
.B nano
|
2005-05-16 18:38:16 +00:00
|
|
|
.I [\+LINE,COLUMN]\ [options]\ [file]
|
2000-06-06 05:53:49 +00:00
|
|
|
.br
|
2003-02-09 01:28:40 +00:00
|
|
|
|
2000-06-06 05:53:49 +00:00
|
|
|
.SH DESCRIPTION
|
2006-04-13 03:57:12 +00:00
|
|
|
This manual page briefly documents the \fBnano\fP command.
|
2000-06-06 05:53:49 +00:00
|
|
|
.PP
|
|
|
|
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
|
2003-08-31 16:44:10 +00:00
|
|
|
.\" \fI<whatever>\fP escape sequences to invoke bold face and italics,
|
2000-06-06 05:53:49 +00:00
|
|
|
.\" respectively.
|
2000-12-03 02:46:02 +00:00
|
|
|
\fBnano\fP is a small, free and friendly editor which aims to replace
|
2003-08-31 16:44:10 +00:00
|
|
|
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, \fBnano\fP also implements some
|
|
|
|
missing (or disabled by default) features in Pico, such as "search and
|
|
|
|
replace" and "go to line number".
|
2003-02-09 01:28:40 +00:00
|
|
|
|
2000-06-06 05:53:49 +00:00
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
2005-06-16 12:16:24 +00:00
|
|
|
.B \+\fILINE\fP,\fICOLUMN\fP
|
2005-05-16 18:38:16 +00:00
|
|
|
Places cursor at line number \fILINE\fP and column number \fICOLUMN\fP
|
|
|
|
on startup, instead of the default of line 1, column 1.
|
2005-03-26 23:15:51 +00:00
|
|
|
.TP
|
|
|
|
.B \-?
|
|
|
|
Same as \fB-h (\-\-help)\fP.
|
2002-07-19 01:08:59 +00:00
|
|
|
.TP
|
2004-05-22 20:15:20 +00:00
|
|
|
.B \-A (\-\-smarthome)
|
|
|
|
Make the Home key smarter. When Home is pressed anywhere but at the
|
|
|
|
very beginning of non-whitespace characters on a line, the cursor will
|
|
|
|
jump to that beginning (either forwards or backwards). If the cursor is
|
|
|
|
already at that position, it will jump to the true beginning of the
|
|
|
|
line.
|
|
|
|
.TP
|
2002-06-28 22:45:14 +00:00
|
|
|
.B \-B (\-\-backup)
|
|
|
|
When saving a file, back up the previous version of it to the current
|
|
|
|
filename suffixed with a ~.
|
|
|
|
.TP
|
2005-06-15 23:20:56 +00:00
|
|
|
.B \-C \fIdir\fP (\-\-backupdir=\fIdir\fP)
|
2005-05-30 02:09:21 +00:00
|
|
|
Set the directory where \fBnano\fP puts unique backup files if file
|
|
|
|
backups are enabled.
|
2004-02-28 16:24:31 +00:00
|
|
|
.TP
|
2006-04-12 15:27:40 +00:00
|
|
|
.B \-D (\-\-boldtext)
|
|
|
|
Use bold text instead of reverse video text.
|
|
|
|
.TP
|
2005-06-15 23:20:56 +00:00
|
|
|
.B \-E (\-\-tabstospaces)
|
|
|
|
Convert typed tabs to spaces.
|
|
|
|
.TP
|
2001-07-15 16:07:23 +00:00
|
|
|
.B \-F (\-\-multibuffer)
|
2002-06-28 22:45:14 +00:00
|
|
|
Enable multiple file buffers, if available.
|
2001-07-15 16:07:23 +00:00
|
|
|
.TP
|
2003-01-17 03:06:28 +00:00
|
|
|
.B \-H (\-\-historylog)
|
2005-06-17 22:11:43 +00:00
|
|
|
Log search and replace strings to \fI~/.nano_history\fP so they can be
|
|
|
|
stored for later editing, if nanorc support is configured.
|
2003-01-17 03:06:28 +00:00
|
|
|
.TP
|
2002-07-20 13:57:41 +00:00
|
|
|
.B \-I (\-\-ignorercfiles)
|
2005-06-17 22:11:43 +00:00
|
|
|
Don't look at \fISYSCONFDIR/nanorc\fP or \fI~/.nanorc\fP, if nanorc
|
|
|
|
support is available.
|
2002-07-20 13:57:41 +00:00
|
|
|
.TP
|
2005-08-10 22:51:49 +00:00
|
|
|
.B \-K (\-\-rebindkeypad)
|
|
|
|
Interpret the numeric keypad keys so that they all work properly. You
|
|
|
|
should only need to use this option if they don't, as mouse support
|
|
|
|
won't work properly with this option enabled.
|
|
|
|
.TP
|
2005-11-05 17:35:44 +00:00
|
|
|
.B \-L (\-\-nonewlines)
|
|
|
|
Don't add newlines to the ends of files.
|
|
|
|
.TP
|
2002-02-22 04:30:50 +00:00
|
|
|
.B \-N (\-\-noconvert)
|
|
|
|
Disable automatic conversion of files from DOS/Mac format.
|
|
|
|
.TP
|
2005-01-17 05:24:26 +00:00
|
|
|
.B \-O (\-\-morespace)
|
|
|
|
Use the blank line below the titlebar as extra editing space.
|
|
|
|
.TP
|
2003-02-04 14:24:54 +00:00
|
|
|
.B \-Q \fIstr\fP (\-\-quotestr=\fIstr\fP)
|
2002-08-21 16:10:37 +00:00
|
|
|
Set the quoting string for justifying. The default is
|
2006-04-05 13:40:56 +00:00
|
|
|
"\fI^([\ \\t]*[#:>\\|}])+\fP" if extended regular expression support is
|
2006-01-03 04:53:41 +00:00
|
|
|
available, or "\fI>\ \fP" otherwise.
|
2002-03-04 12:15:44 +00:00
|
|
|
.TP
|
2005-06-17 22:53:41 +00:00
|
|
|
.B \-R (\-\-restricted)
|
|
|
|
Restricted mode: Don't read or write to any file not specified on the
|
|
|
|
command line, read any nanorc files, allow suspending, or allow a file
|
|
|
|
to be appended to, prepended to, or saved under a different name if it
|
|
|
|
already has one. Also accessible by invoking \fBnano\fP with any name
|
|
|
|
beginning with 'r' (e.g. "rnano").
|
|
|
|
.TP
|
2001-10-03 12:45:22 +00:00
|
|
|
.B \-S (\-\-smooth)
|
2003-08-31 16:44:10 +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.
|
2001-10-03 12:45:22 +00:00
|
|
|
.TP
|
2004-02-25 03:58:46 +00:00
|
|
|
.B \-T \fIcols\fP (\-\-tabsize=\fIcols\fP)
|
2005-06-27 05:01:32 +00:00
|
|
|
Set the size (width) of a tab to \fIcols\fP columns. The value of
|
|
|
|
\fIcols\fP must be greater than 0. The default value is 8.
|
2001-10-03 12:45:22 +00:00
|
|
|
.TP
|
2005-06-17 19:06:25 +00:00
|
|
|
.B \-U (\-\-quickblank)
|
|
|
|
Do quick statusbar blanking. Statusbar messages will disappear after 1
|
2005-06-17 22:11:43 +00:00
|
|
|
keystroke instead of 25. Note that \fB-c\fP cancels this out.
|
2005-06-17 19:06:25 +00:00
|
|
|
.TP
|
2000-06-06 05:53:49 +00:00
|
|
|
.B \-V (\-\-version)
|
|
|
|
Show the current version number and author.
|
|
|
|
.TP
|
2005-08-10 22:51:49 +00:00
|
|
|
.B \-W (\-\-wordbounds)
|
|
|
|
Detect word boundaries more accurately by treating punctuation
|
|
|
|
characters as part of a word.
|
|
|
|
.TP
|
2003-02-04 14:24:54 +00:00
|
|
|
.B \-Y \fIstr\fP (\-\-syntax=\fIstr\fP)
|
2005-06-17 22:11:43 +00:00
|
|
|
Specify a specific syntax highlighting from the \fInanorc\fP to use, if
|
|
|
|
available.
|
2002-05-04 04:23:30 +00:00
|
|
|
.TP
|
2000-06-06 05:53:49 +00:00
|
|
|
.B \-c (\-\-const)
|
2005-06-17 22:11:43 +00:00
|
|
|
Constantly show the cursor position. Note that this cancels out
|
|
|
|
\fB-U\fP.
|
2000-06-06 05:53:49 +00:00
|
|
|
.TP
|
2003-08-31 16:44:10 +00:00
|
|
|
.B \-d (\-\-rebinddelete)
|
|
|
|
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.
|
|
|
|
.TP
|
2001-10-03 12:45:22 +00:00
|
|
|
.B \-h (\-\-help)
|
|
|
|
Display a summary of command line options.
|
|
|
|
.TP
|
2000-06-06 05:53:49 +00:00
|
|
|
.B \-i (\-\-autoindent)
|
2004-02-28 01:58:21 +00:00
|
|
|
Indent new lines to the previous line's indentation. Useful when
|
|
|
|
editing source code.
|
2000-06-06 05:53:49 +00:00
|
|
|
.TP
|
2001-04-30 10:30:43 +00:00
|
|
|
.B \-k (\-\-cut)
|
2005-03-11 20:22:48 +00:00
|
|
|
Enable cut from cursor to end of line.
|
2001-04-30 10:30:43 +00:00
|
|
|
.TP
|
2000-06-06 05:53:49 +00:00
|
|
|
.B \-l (\-\-nofollow)
|
2002-04-06 05:02:14 +00:00
|
|
|
If the file being edited is a symbolic link, replace the link with
|
2005-03-11 20:22:48 +00:00
|
|
|
a new file instead of following it. Good for editing files in
|
2005-06-17 22:11:43 +00:00
|
|
|
\fI/tmp\fP, perhaps?
|
2000-06-06 05:53:49 +00:00
|
|
|
.TP
|
|
|
|
.B \-m (\-\-mouse)
|
|
|
|
Enable mouse support (if available for your system).
|
|
|
|
.TP
|
2003-02-04 14:24:54 +00:00
|
|
|
.B \-o \fIdir\fP (\-\-operatingdir=\fIdir\fP)
|
2005-11-21 03:36:29 +00:00
|
|
|
Set operating directory. Makes \fBnano\fP set up something similar to a
|
2002-06-28 22:45:14 +00:00
|
|
|
chroot.
|
2001-10-03 12:45:22 +00:00
|
|
|
.TP
|
2003-01-17 03:06:28 +00:00
|
|
|
.B \-p (\-\-preserve)
|
2003-08-31 16:44:10 +00:00
|
|
|
Preserve the XON and XOFF sequences (^Q and ^S) so they will be caught
|
|
|
|
by the terminal.
|
2000-06-06 05:53:49 +00:00
|
|
|
.TP
|
2003-02-04 14:24:54 +00:00
|
|
|
.B \-r \fIcols\fP (\-\-fill=\fIcols\fP)
|
2005-06-27 05:01:32 +00:00
|
|
|
Wrap lines at column \fIcols\fP. If this value is 0 or less, wrapping
|
|
|
|
will occur at the width of the screen less \fIcols\fP columns, allowing
|
|
|
|
the wrap point to vary along with the width of the screen if the screen
|
|
|
|
is resized. The default value is -8.
|
2001-04-30 10:30:43 +00:00
|
|
|
.TP
|
2003-02-04 14:24:54 +00:00
|
|
|
.B \-s \fIprog\fP (\-\-speller=\fIprog\fP)
|
2000-06-06 05:53:49 +00:00
|
|
|
Enable alternative spell checker command.
|
|
|
|
.TP
|
|
|
|
.B \-t (\-\-tempfile)
|
2005-06-17 22:11:43 +00:00
|
|
|
Always save changed buffer without prompting. Same as Pico's \fB-t\fP
|
|
|
|
option.
|
2000-06-06 05:53:49 +00:00
|
|
|
.TP
|
|
|
|
.B \-v (\-\-view)
|
|
|
|
View file (read only) mode.
|
|
|
|
.TP
|
|
|
|
.B \-w (\-\-nowrap)
|
|
|
|
Disable wrapping of long lines.
|
|
|
|
.TP
|
|
|
|
.B \-x (\-\-nohelp)
|
|
|
|
Disable help screen at bottom of editor.
|
|
|
|
.TP
|
|
|
|
.B \-z (\-\-suspend)
|
|
|
|
Enable suspend ability.
|
|
|
|
.TP
|
2001-10-03 15:53:25 +00:00
|
|
|
.B \-a, \-b, \-e, \-f, \-g, \-j
|
2000-12-18 02:23:50 +00:00
|
|
|
Ignored, for compatibility with Pico.
|
2003-02-09 01:28:40 +00:00
|
|
|
|
2003-02-04 14:24:54 +00:00
|
|
|
.SH INITIALIZATION FILE
|
2003-08-31 16:44:10 +00:00
|
|
|
\fBnano\fP will read initialization files in the following order:
|
2005-06-17 22:11:43 +00:00
|
|
|
\fISYSCONFDIR/nanorc\fP, then \fI~/.nanorc\fP. Please see
|
|
|
|
\fBnanorc(5)\fP and the example file \fBnanorc.sample\fP, both of which
|
|
|
|
should be provided with \fBnano\fP.
|
2003-02-09 01:28:40 +00:00
|
|
|
|
2000-12-03 02:46:02 +00:00
|
|
|
.SH NOTES
|
2004-06-01 22:56:34 +00:00
|
|
|
If no alternative spell checker command is specified on the command
|
|
|
|
line or in one of the nanorc files, \fBnano\fP will check the
|
|
|
|
\fBSPELL\fP environment variable for one.
|
|
|
|
|
2002-07-19 01:08:59 +00:00
|
|
|
\fBnano\fP 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 \fBnano\fP receives a SIGHUP or
|
|
|
|
SIGTERM or runs out of memory, when it will write the buffer into a file
|
2005-06-17 22:11:43 +00:00
|
|
|
named \fInano.save\fP 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 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, \fBnano\fP will write all the open
|
|
|
|
buffers to their respective emergency files.
|
2003-02-09 01:28:40 +00:00
|
|
|
|
2000-06-06 05:53:49 +00:00
|
|
|
.SH BUGS
|
2005-06-17 22:11:43 +00:00
|
|
|
Please send any comments or bug reports to \fBnano@nano-editor.org\fP.
|
2003-06-11 10:17:20 +00:00
|
|
|
|
2005-06-17 22:11:43 +00:00
|
|
|
The \fBnano\fP mailing list is available from \fBnano-devel@gnu.org\fP.
|
2003-06-11 10:17:20 +00:00
|
|
|
|
2005-06-17 22:11:43 +00:00
|
|
|
To subscribe, email to \fBnano-devel-request@gnu.org\fP with a subject
|
|
|
|
of "subscribe".
|
2003-02-09 01:28:40 +00:00
|
|
|
|
2000-06-06 05:53:49 +00:00
|
|
|
.SH HOMEPAGE
|
2003-02-09 01:28:40 +00:00
|
|
|
http://www.nano-editor.org/
|
|
|
|
|
|
|
|
.SH SEE ALSO
|
|
|
|
.PD 0
|
|
|
|
.TP
|
|
|
|
\fBnanorc\fP(5)
|
|
|
|
.PP
|
|
|
|
\fI/usr/share/doc/nano/\fP (or equivalent on your system)
|
|
|
|
|
2000-06-06 05:53:49 +00:00
|
|
|
.SH AUTHOR
|
2005-06-17 22:11:43 +00:00
|
|
|
Chris Allegretta <chrisa@asty.org>, et al (see \fIAUTHORS\fP and
|
|
|
|
\fITHANKS\fP for details). This manual page was originally written by
|
|
|
|
Jordi Mallach <jordi@sindominio.net>, for the Debian GNU system (but may
|
|
|
|
be used by others).
|