2000-12-03 05:46:02 +03:00
|
|
|
.\" Hey, EMACS: -*- nroff -*-
|
2014-06-13 19:20:26 +04:00
|
|
|
.\" $Id$
|
|
|
|
.\"
|
2009-12-02 06:36:22 +03:00
|
|
|
.\" Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
|
2014-05-01 00:18:26 +04:00
|
|
|
.\" 2009, 2010, 2013, 2014 Free Software Foundation, Inc.
|
2000-12-03 05:46:02 +03:00
|
|
|
.\"
|
2007-08-23 08:34:35 +04:00
|
|
|
.\" This document is dual-licensed. You may distribute and/or modify it
|
|
|
|
.\" under the terms of either of the following licenses:
|
|
|
|
.\"
|
|
|
|
.\" * The GNU General Public License, as published by the Free Software
|
|
|
|
.\" Foundation, version 3 or (at your option) any later version. You
|
|
|
|
.\" should have received a copy of the GNU General Public License
|
|
|
|
.\" along with this program. If not, see
|
|
|
|
.\" <http://www.gnu.org/licenses/>.
|
|
|
|
.\"
|
|
|
|
.\" * The GNU Free Documentation License, as published by the Free
|
|
|
|
.\" Software Foundation, version 1.2 or (at your option) any later
|
|
|
|
.\" version, with no Invariant Sections, no Front-Cover Texts, and no
|
|
|
|
.\" Back-Cover Texts. You should have received a copy of the GNU Free
|
|
|
|
.\" Documentation License along with this program. If not, see
|
|
|
|
.\" <http://www.gnu.org/licenses/>.
|
2000-12-03 05:46:02 +03:00
|
|
|
.\"
|
2014-06-13 19:20:26 +04:00
|
|
|
.TH NANO 1 "version 2.3.5" "June 2014"
|
2000-06-06 09:53:49 +04:00
|
|
|
.\" Please adjust this date whenever revising the manpage.
|
|
|
|
.\"
|
2003-02-09 04:28:40 +03:00
|
|
|
|
2000-06-06 09:53:49 +04:00
|
|
|
.SH NAME
|
2003-01-17 06:06:28 +03:00
|
|
|
nano \- Nano's ANOther editor, an enhanced free Pico clone
|
2003-02-09 04:28:40 +03:00
|
|
|
|
2000-06-06 09:53:49 +04:00
|
|
|
.SH SYNOPSIS
|
|
|
|
.B nano
|
2014-03-03 20:08:45 +04:00
|
|
|
.RI [ options "] [[\+" line , column "]\ " file "]..."
|
2000-06-06 09:53:49 +04:00
|
|
|
.br
|
2003-02-09 04:28:40 +03:00
|
|
|
|
2000-06-06 09:53:49 +04:00
|
|
|
.SH DESCRIPTION
|
2000-12-03 05:46:02 +03:00
|
|
|
\fBnano\fP is a small, free and friendly editor which aims to replace
|
2014-04-09 00:01:17 +04:00
|
|
|
Pico, the default editor included in the non-free Pine package. On
|
|
|
|
top of copying Pico's look and feel, \fBnano\fP also implements some
|
2002-07-19 05:08:59 +04:00
|
|
|
missing (or disabled by default) features in Pico, such as "search and
|
2006-10-28 23:21:12 +04:00
|
|
|
replace" and "go to line and column number".
|
2003-02-09 04:28:40 +03:00
|
|
|
|
2000-06-06 09:53:49 +04:00
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
2014-03-03 20:08:45 +04:00
|
|
|
.B \+\fIline\fP,\fIcolumn\fP
|
|
|
|
Places the cursor on line number \fIline\fP and at column number \fIcolumn\fP
|
2006-06-26 08:39:31 +04:00
|
|
|
(at least one of which must be specified) on startup, instead of the
|
2014-03-03 20:08:45 +04:00
|
|
|
default line 1, column 1.
|
2005-03-27 03:15:51 +04:00
|
|
|
.TP
|
2004-05-23 00:15:20 +04: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-29 02:45:14 +04:00
|
|
|
.B \-B (\-\-backup)
|
|
|
|
When saving a file, back up the previous version of it to the current
|
2014-05-07 00:43:00 +04:00
|
|
|
filename suffixed with a tilde (\fB~\fP).
|
2002-06-29 02:45:14 +04:00
|
|
|
.TP
|
2005-06-16 03:20:56 +04:00
|
|
|
.B \-C \fIdir\fP (\-\-backupdir=\fIdir\fP)
|
2014-05-07 00:43:00 +04:00
|
|
|
Set the directory where \fBnano\fP puts unique backup files, if file
|
2005-05-30 06:09:21 +04:00
|
|
|
backups are enabled.
|
2004-02-28 19:24:31 +03:00
|
|
|
.TP
|
2006-04-12 19:27:40 +04:00
|
|
|
.B \-D (\-\-boldtext)
|
|
|
|
Use bold text instead of reverse video text.
|
|
|
|
.TP
|
2005-06-16 03:20:56 +04:00
|
|
|
.B \-E (\-\-tabstospaces)
|
|
|
|
Convert typed tabs to spaces.
|
|
|
|
.TP
|
2001-07-15 20:07:23 +04:00
|
|
|
.B \-F (\-\-multibuffer)
|
2014-06-16 19:24:28 +04:00
|
|
|
Enable multiple file buffers (if support for them has been compiled in).
|
2001-07-15 20:07:23 +04:00
|
|
|
.TP
|
2013-01-01 07:24:39 +04:00
|
|
|
.B \-G (\-\-locking)
|
|
|
|
Enable vim-style file locking when editing files.
|
|
|
|
.TP
|
2003-01-17 06:06:28 +03:00
|
|
|
.B \-H (\-\-historylog)
|
2014-06-16 19:02:58 +04:00
|
|
|
Log search and replace strings to \fI~/.nano/search_history\fP, so they can be
|
2014-06-16 19:24:28 +04:00
|
|
|
retrieved in later sessions (if \fInanorc\fP support has been compiled in).
|
2003-01-17 06:06:28 +03:00
|
|
|
.TP
|
2002-07-20 17:57:41 +04:00
|
|
|
.B \-I (\-\-ignorercfiles)
|
2014-06-18 00:30:59 +04:00
|
|
|
Don't look at the system's \fBnanorc\fP nor at \fB~/.nanorc\fP
|
2014-06-16 19:24:28 +04:00
|
|
|
(if \fInanorc\fP support has been compiled in).
|
2002-07-20 17:57:41 +04:00
|
|
|
.TP
|
2005-08-11 02:51:49 +04: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 20:35:44 +03:00
|
|
|
.B \-L (\-\-nonewlines)
|
|
|
|
Don't add newlines to the ends of files.
|
|
|
|
.TP
|
2002-02-22 07:30:50 +03:00
|
|
|
.B \-N (\-\-noconvert)
|
|
|
|
Disable automatic conversion of files from DOS/Mac format.
|
|
|
|
.TP
|
2005-01-17 08:24:26 +03:00
|
|
|
.B \-O (\-\-morespace)
|
|
|
|
Use the blank line below the titlebar as extra editing space.
|
|
|
|
.TP
|
2013-06-14 06:31:38 +04:00
|
|
|
.B \-P (\-\-poslog)
|
2014-04-09 00:01:17 +04:00
|
|
|
Log and later read back the location of the cursor and place it there
|
|
|
|
again.
|
2013-06-14 06:31:38 +04:00
|
|
|
.TP
|
2003-02-04 17:24:54 +03:00
|
|
|
.B \-Q \fIstr\fP (\-\-quotestr=\fIstr\fP)
|
2002-08-21 20:10:37 +04:00
|
|
|
Set the quoting string for justifying. The default is
|
2006-04-05 17:40:56 +04:00
|
|
|
"\fI^([\ \\t]*[#:>\\|}])+\fP" if extended regular expression support is
|
2006-05-14 19:19:38 +04:00
|
|
|
available, or "\fI>\ \fP" otherwise. Note that \fI\\t\fP stands for a
|
|
|
|
Tab.
|
2002-03-04 15:15:44 +03:00
|
|
|
.TP
|
2005-06-18 02:53:41 +04:00
|
|
|
.B \-R (\-\-restricted)
|
2006-05-01 17:22:47 +04:00
|
|
|
Restricted mode: don't read or write to any file not specified on the
|
2014-05-07 00:43:00 +04:00
|
|
|
command line; don't read any \fInanorc\fP files; don't allow suspending;
|
|
|
|
don't allow a file to be appended to, prepended to, or saved under a
|
|
|
|
different name if it already has one; don't use backup files nor spell
|
|
|
|
checking. This restricted mode is also accessible by invoking \fBnano\fP
|
|
|
|
with any name beginning with 'r' (e.g. "rnano").
|
2005-06-18 02:53:41 +04:00
|
|
|
.TP
|
2001-10-03 16:45:22 +04:00
|
|
|
.B \-S (\-\-smooth)
|
2003-08-31 20:44:10 +04:00
|
|
|
Enable smooth scrolling. Text will scroll line-by-line, instead of the
|
2002-07-19 05:08:59 +04:00
|
|
|
usual chunk-by-chunk behavior.
|
2001-10-03 16:45:22 +04:00
|
|
|
.TP
|
2014-05-07 00:43:00 +04:00
|
|
|
.B \-T \fInumber\fP (\-\-tabsize=\fInumber\fP)
|
|
|
|
Set the size (width) of a tab to \fInumber\fP columns. The value of
|
|
|
|
\fInumber\fP must be greater than 0. The default value is 8.
|
2001-10-03 16:45:22 +04:00
|
|
|
.TP
|
2005-06-17 23:06:25 +04:00
|
|
|
.B \-U (\-\-quickblank)
|
|
|
|
Do quick statusbar blanking. Statusbar messages will disappear after 1
|
2014-03-03 20:08:45 +04:00
|
|
|
keystroke instead of 25. Note that \fB\-c\fP overrides this.
|
2005-06-17 23:06:25 +04:00
|
|
|
.TP
|
2000-06-06 09:53:49 +04:00
|
|
|
.B \-V (\-\-version)
|
2006-05-01 17:22:47 +04:00
|
|
|
Show the current version number and exit.
|
2000-06-06 09:53:49 +04:00
|
|
|
.TP
|
2005-08-11 02:51:49 +04:00
|
|
|
.B \-W (\-\-wordbounds)
|
|
|
|
Detect word boundaries more accurately by treating punctuation
|
|
|
|
characters as part of a word.
|
|
|
|
.TP
|
2003-02-04 17:24:54 +03:00
|
|
|
.B \-Y \fIstr\fP (\-\-syntax=\fIstr\fP)
|
2005-06-18 02:11:43 +04:00
|
|
|
Specify a specific syntax highlighting from the \fInanorc\fP to use, if
|
|
|
|
available.
|
2002-05-04 08:23:30 +04:00
|
|
|
.TP
|
2000-06-06 09:53:49 +04:00
|
|
|
.B \-c (\-\-const)
|
2014-03-03 20:08:45 +04:00
|
|
|
Constantly show the cursor position. Note that this overrides \fB\-U\fP.
|
2000-06-06 09:53:49 +04:00
|
|
|
.TP
|
2003-08-31 20:44:10 +04: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 16:45:22 +04:00
|
|
|
.B \-h (\-\-help)
|
2014-03-03 20:08:45 +04:00
|
|
|
Show a summary of the available command-line options and exit.
|
2001-10-03 16:45:22 +04:00
|
|
|
.TP
|
2000-06-06 09:53:49 +04:00
|
|
|
.B \-i (\-\-autoindent)
|
2004-02-28 04:58:21 +03:00
|
|
|
Indent new lines to the previous line's indentation. Useful when
|
|
|
|
editing source code.
|
2000-06-06 09:53:49 +04:00
|
|
|
.TP
|
2001-04-30 14:30:43 +04:00
|
|
|
.B \-k (\-\-cut)
|
2014-05-07 00:43:00 +04:00
|
|
|
Make the 'Cut Text' command (normally ^K) cut from the current cursor
|
|
|
|
position to the end of the line, instead of cutting the entire line.
|
2001-04-30 14:30:43 +04:00
|
|
|
.TP
|
2000-06-06 09:53:49 +04:00
|
|
|
.B \-l (\-\-nofollow)
|
2002-04-06 09:02:14 +04:00
|
|
|
If the file being edited is a symbolic link, replace the link with
|
2005-03-11 23:22:48 +03:00
|
|
|
a new file instead of following it. Good for editing files in
|
2005-06-18 02:11:43 +04:00
|
|
|
\fI/tmp\fP, perhaps?
|
2000-06-06 09:53:49 +04:00
|
|
|
.TP
|
|
|
|
.B \-m (\-\-mouse)
|
2006-05-25 00:55:44 +04:00
|
|
|
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
|
2014-05-07 00:43:00 +04:00
|
|
|
System, and on the console when gpm is running. Text can still be
|
|
|
|
selected through dragging by holding down the Shift key.
|
2000-06-06 09:53:49 +04:00
|
|
|
.TP
|
2014-04-08 23:40:37 +04:00
|
|
|
.B \-n (\-\-noread)
|
|
|
|
Treat any name given on the command line as a new file. This allows
|
|
|
|
\fBnano\fR to write to named pipes: it will start with a blank buffer,
|
|
|
|
and will write to the pipe when the user saves the "file". This way
|
|
|
|
\fBnano\fR can be used as an editor in combination with for instance
|
|
|
|
\fBgpg\fR without having to write sensitive data to disk first.
|
|
|
|
.TP
|
2003-02-04 17:24:54 +03:00
|
|
|
.B \-o \fIdir\fP (\-\-operatingdir=\fIdir\fP)
|
2005-11-21 06:36:29 +03:00
|
|
|
Set operating directory. Makes \fBnano\fP set up something similar to a
|
2002-06-29 02:45:14 +04:00
|
|
|
chroot.
|
2001-10-03 16:45:22 +04:00
|
|
|
.TP
|
2003-01-17 06:06:28 +03:00
|
|
|
.B \-p (\-\-preserve)
|
2003-08-31 20:44:10 +04:00
|
|
|
Preserve the XON and XOFF sequences (^Q and ^S) so they will be caught
|
|
|
|
by the terminal.
|
2000-06-06 09:53:49 +04:00
|
|
|
.TP
|
2009-02-09 07:03:20 +03:00
|
|
|
.B \-q (\-\-quiet)
|
2014-03-03 20:08:45 +04:00
|
|
|
Do not report errors in the \fInanorc\fP file nor ask them to be
|
2009-12-02 06:36:22 +03:00
|
|
|
acknowledged by pressing Enter at startup.
|
2009-02-09 07:03:20 +03:00
|
|
|
.TP
|
2014-05-07 00:43:00 +04:00
|
|
|
.B \-r \fInumber\fP (\-\-fill=\fInumber\fP)
|
|
|
|
Hard-wrap lines at column \fInumber\fP. If this value is 0 or less, wrapping
|
|
|
|
will occur at the width of the screen less \fInumber\fP columns, allowing
|
2005-06-27 09:01:32 +04:00
|
|
|
the wrap point to vary along with the width of the screen if the screen
|
2014-05-07 00:43:00 +04:00
|
|
|
is resized. The default value is \-8. This option conflicts with
|
|
|
|
.B \-w
|
|
|
|
-- the last one given takes effect.
|
2001-04-30 14:30:43 +04:00
|
|
|
.TP
|
2014-05-07 00:43:00 +04:00
|
|
|
.B \-s \fIprogram\fP (\-\-speller=\fIprogram\fP)
|
2000-06-06 09:53:49 +04:00
|
|
|
Enable alternative spell checker command.
|
|
|
|
.TP
|
|
|
|
.B \-t (\-\-tempfile)
|
2014-03-03 20:08:45 +04:00
|
|
|
Always save changed buffer without prompting. Same as Pico's \fB\-t\fP
|
2005-06-18 02:11:43 +04:00
|
|
|
option.
|
2000-06-06 09:53:49 +04:00
|
|
|
.TP
|
|
|
|
.B \-v (\-\-view)
|
2014-05-07 00:43:00 +04:00
|
|
|
View-file (read-only) mode.
|
2000-06-06 09:53:49 +04:00
|
|
|
.TP
|
|
|
|
.B \-w (\-\-nowrap)
|
2014-05-07 00:43:00 +04:00
|
|
|
Disable the hard-wrapping of long lines. This option conflicts with
|
|
|
|
.B \-r
|
|
|
|
-- the last one given takes effect.
|
2000-06-06 09:53:49 +04:00
|
|
|
.TP
|
|
|
|
.B \-x (\-\-nohelp)
|
2014-05-07 00:43:00 +04:00
|
|
|
Don't show the two help lines at the bottom of the screen.
|
2000-06-06 09:53:49 +04:00
|
|
|
.TP
|
|
|
|
.B \-z (\-\-suspend)
|
2014-05-07 00:43:00 +04:00
|
|
|
Enable the suspend ability.
|
2000-06-06 09:53:49 +04:00
|
|
|
.TP
|
2009-08-17 11:52:10 +04:00
|
|
|
.B \-$ (\-\-softwrap)
|
2014-05-07 00:43:00 +04:00
|
|
|
Enable 'soft wrapping'. This will make \fBnano\fP 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
|
2009-12-26 04:58:50 +03:00
|
|
|
\&'$' normally refers to a variable in the Unix shell, you should specify
|
2009-12-03 01:47:57 +03:00
|
|
|
this option last when using other options (e.g. 'nano \-wS$') or pass it
|
|
|
|
separately (e.g. 'nano \-wS \-$').
|
2009-08-17 11:52:10 +04:00
|
|
|
.TP
|
2001-10-03 19:53:25 +04:00
|
|
|
.B \-a, \-b, \-e, \-f, \-g, \-j
|
2000-12-18 05:23:50 +03:00
|
|
|
Ignored, for compatibility with Pico.
|
2003-02-09 04:28:40 +03:00
|
|
|
|
2003-02-04 17:24:54 +03:00
|
|
|
.SH INITIALIZATION FILE
|
2003-08-31 20:44:10 +04:00
|
|
|
\fBnano\fP will read initialization files in the following order:
|
2014-06-18 00:30:59 +04:00
|
|
|
the system's \fBnanorc\fP (if it exists), and then the user's
|
|
|
|
\fB~/.nanorc\fP (if it exists). Please see
|
|
|
|
.BR nanorc (5)
|
|
|
|
for more information on the possible contents of those files.
|
2003-02-09 04:28:40 +03:00
|
|
|
|
2000-12-03 05:46:02 +03:00
|
|
|
.SH NOTES
|
2004-06-02 02:56:34 +04:00
|
|
|
If no alternative spell checker command is specified on the command
|
2014-06-18 00:30:59 +04:00
|
|
|
line nor in one of the \fInanorc\fP files, \fBnano\fP will check the
|
2004-06-02 02:56:34 +04:00
|
|
|
\fBSPELL\fP environment variable for one.
|
|
|
|
|
2006-05-14 19:19:38 +04:00
|
|
|
In some cases \fBnano\fP will try to dump the buffer into an emergency
|
|
|
|
file. This will happen mainly if \fBnano\fP receives a SIGHUP or
|
|
|
|
SIGTERM or runs out of memory. It will write the buffer into a file
|
2005-06-18 02:11:43 +04: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
|
2006-05-14 19:19:38 +04:00
|
|
|
that name already exists in the current directory, it will add ".save"
|
|
|
|
plus a number (e.g. ".save.1") to the current filename in order to make
|
|
|
|
it unique. In multibuffer mode, \fBnano\fP will write all the open
|
2005-06-18 02:11:43 +04:00
|
|
|
buffers to their respective emergency files.
|
2003-02-09 04:28:40 +03:00
|
|
|
|
2000-06-06 09:53:49 +04:00
|
|
|
.SH BUGS
|
2005-06-18 02:11:43 +04:00
|
|
|
Please send any comments or bug reports to \fBnano@nano-editor.org\fP.
|
2003-06-11 14:17:20 +04:00
|
|
|
|
2005-06-18 02:11:43 +04:00
|
|
|
The \fBnano\fP mailing list is available from \fBnano-devel@gnu.org\fP.
|
2003-06-11 14:17:20 +04:00
|
|
|
|
2005-06-18 02:11:43 +04:00
|
|
|
To subscribe, email to \fBnano-devel-request@gnu.org\fP with a subject
|
|
|
|
of "subscribe".
|
2003-02-09 04:28:40 +03:00
|
|
|
|
2000-06-06 09:53:49 +04:00
|
|
|
.SH HOMEPAGE
|
2003-02-09 04:28:40 +03: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 09:53:49 +04:00
|
|
|
.SH AUTHOR
|
2005-06-18 02:11:43 +04:00
|
|
|
Chris Allegretta <chrisa@asty.org>, et al (see \fIAUTHORS\fP and
|
|
|
|
\fITHANKS\fP for details). This manual page was originally written by
|
2006-07-12 20:50:43 +04:00
|
|
|
Jordi Mallach <jordi@gnu.org>, for the Debian system (but may be used by
|
|
|
|
others).
|