2003-02-09 04:28:40 +03:00
|
|
|
.\" Hey, EMACS: -*- nroff -*-
|
2005-01-17 08:35:00 +03:00
|
|
|
.\" nanorc.5 is Copyright (C) 2003, 2004, 2005 Free Software
|
|
|
|
.\" Foundation, Inc.
|
2003-02-09 04:28:40 +03:00
|
|
|
.\"
|
|
|
|
.\" This is free documentation, see the latest version of the GNU General
|
2003-08-31 20:44:10 +04:00
|
|
|
.\" Public License for copying conditions. There is NO warranty.
|
2003-02-09 04:28:40 +03:00
|
|
|
.\"
|
|
|
|
.\" $Id$
|
2005-06-16 03:20:56 +04:00
|
|
|
.TH NANORC 5 "version 1.3.8" "June 15, 2005"
|
2003-02-09 04:28:40 +03:00
|
|
|
.\" Please adjust this date whenever revising the manpage.
|
|
|
|
.\"
|
|
|
|
.SH NAME
|
|
|
|
nanorc \- GNU nano's rcfile
|
|
|
|
.SH DESCRIPTION
|
|
|
|
This manual page documents GNU \fBnano\fP's rcfile.
|
|
|
|
.PP
|
|
|
|
\fBnano\fP is a small, free and friendly editor which aims to replace
|
2003-08-31 20:44:10 +04:00
|
|
|
Pico, the default editor included in the non-free Pine package. Rather
|
2003-02-09 04:28:40 +03: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-06-11 20:38:35 +04:00
|
|
|
.PP
|
2003-08-31 20:44:10 +04:00
|
|
|
The \fInanorc\fP file contains the default settings for \fBnano\fP.
|
2003-06-11 20:38:35 +04:00
|
|
|
During startup, \fBnano\fP will first read its system-wide settings from
|
2003-08-31 20:44:10 +04:00
|
|
|
.IR SYSCONFDIR/nanorc ,
|
2003-06-11 20:38:35 +04:00
|
|
|
and then user-specific settings from
|
2003-06-29 06:25:46 +04:00
|
|
|
.IR ~/.nanorc .
|
2003-02-09 04:28:40 +03:00
|
|
|
|
|
|
|
.SH OPTIONS
|
|
|
|
The configuration file accepts a series of "set" and "unset" commands,
|
|
|
|
which can be used to configure nano on startup without using the
|
2003-08-31 20:44:10 +04:00
|
|
|
command-line options. Additionally, the "syntax" and "color" keywords
|
|
|
|
are used to define syntax highlighting rules for different text
|
|
|
|
patterns. GNU nano will read one command per line.
|
2003-02-09 04:28:40 +03:00
|
|
|
|
2003-08-31 20:44:10 +04:00
|
|
|
Options in rcfiles take precedence over nano's defaults, and command
|
|
|
|
line options override rcfile settings.
|
2003-02-09 04:28:40 +03:00
|
|
|
|
2003-02-15 16:34:03 +03:00
|
|
|
Options are unset by default, except for options that take an argument.
|
|
|
|
|
2003-02-09 04:28:40 +03:00
|
|
|
The supported commands and arguments are:
|
|
|
|
|
|
|
|
.TP 3
|
|
|
|
\fBset/unset autoindent\fP
|
|
|
|
Use auto-indentation.
|
|
|
|
.TP
|
|
|
|
\fBset/unset backup\fP
|
2003-06-11 20:38:35 +04:00
|
|
|
Create backup files in
|
|
|
|
.IR filename~ .
|
2003-02-09 04:28:40 +03:00
|
|
|
.TP
|
2004-02-28 19:24:31 +03:00
|
|
|
\fBset backupdir "\fIdirectory\fP"\fP
|
2005-05-30 06:09:21 +04:00
|
|
|
Set the directory where \fBnano\fP puts unique backup files if file
|
|
|
|
backups are enabled.
|
2004-05-29 20:38:57 +04:00
|
|
|
\fBset brackets "\fIstring\fP"\fP
|
|
|
|
Set the characters treated as closing brackets. They cannot contain
|
|
|
|
tabs or spaces. Only closing punctuation, optionally followed by
|
|
|
|
closing brackets, can end sentences.
|
2004-02-28 19:24:31 +03:00
|
|
|
.TP
|
2003-02-09 04:28:40 +03:00
|
|
|
\fBset/unset const\fP
|
2003-02-15 16:34:03 +03:00
|
|
|
Constantly display the cursor position in the status bar.
|
2003-02-09 04:28:40 +03:00
|
|
|
.TP
|
|
|
|
\fBset/unset cut\fP
|
2005-01-17 08:24:26 +03:00
|
|
|
Use cut to end of line by default.
|
2003-02-09 04:28:40 +03:00
|
|
|
.TP
|
2003-02-13 07:01:49 +03:00
|
|
|
\fBset fill \fIn\fP\fP
|
2003-02-15 16:34:03 +03:00
|
|
|
Wrap lines at column number \fIn\fP. If \fIn\fP is 0 or less, the line
|
|
|
|
length will be the screen width less \fIn\fP. The default value is -8.
|
2003-02-09 04:28:40 +03:00
|
|
|
.TP
|
2003-06-29 06:25:46 +04:00
|
|
|
\fBset/unset historylog\fP
|
|
|
|
Enable
|
|
|
|
.I ~/.nano_history
|
|
|
|
for saving and reading search/replace strings.
|
|
|
|
.TP
|
2005-01-17 08:24:26 +03:00
|
|
|
\fBset/unset morespace\fP
|
|
|
|
Allow use of the blank line below the titlebar as extra editing space.
|
|
|
|
.TP
|
|
|
|
\fBset/unset mouse\fP
|
|
|
|
Enable mouse support, so that mouse clicks can be used to set the mark
|
|
|
|
and run shortcuts.
|
|
|
|
.TP
|
2003-02-09 04:28:40 +03:00
|
|
|
\fBset/unset multibuffer\fP
|
2003-02-13 07:01:49 +03:00
|
|
|
Allow inserting files into their own buffers.
|
2003-02-09 04:28:40 +03:00
|
|
|
.TP
|
|
|
|
\fBset/unset noconvert\fP
|
|
|
|
Don't convert files from DOS/Mac format.
|
|
|
|
.TP
|
|
|
|
\fBset/unset nofollow\fP
|
|
|
|
Don't follow symlinks when writing files.
|
|
|
|
.TP
|
|
|
|
\fBset/unset nohelp\fP
|
|
|
|
Don't display the help lists at the bottom of the screen.
|
|
|
|
.TP
|
|
|
|
\fBset/unset nowrap\fP
|
|
|
|
Don't wrap text at all.
|
|
|
|
.TP
|
2003-02-13 07:01:49 +03:00
|
|
|
\fBset operatingdir "\fIdirectory\fP"\fP
|
2003-02-15 16:34:03 +03:00
|
|
|
\fBnano\fP will only read and write files inside \fIdirectory\fP and its
|
2003-08-31 20:44:10 +04:00
|
|
|
subdirectories. Also, the current directory is changed to here, so
|
|
|
|
files are inserted from this dir. By default the operating directory
|
|
|
|
feature is turned off.
|
2003-02-09 04:28:40 +03:00
|
|
|
.TP
|
|
|
|
\fBset/unset preserve\fP
|
|
|
|
Preserve the XON and XOFF keys (^Q and ^S).
|
|
|
|
.TP
|
2004-05-29 20:38:57 +04:00
|
|
|
\fBset punct "\fIstring\fP"\fP
|
|
|
|
Set the characters treated as closing punctuation. They cannot contain
|
|
|
|
tabs or spaces. Only closing punctuation, optionally followed by
|
|
|
|
closing brackets, can end sentences.
|
|
|
|
.TP
|
2003-02-13 07:01:49 +03:00
|
|
|
\fBset quotestr "\fIstring\fP"\fP
|
2003-08-31 20:44:10 +04:00
|
|
|
The email-quote string, used to justify email-quoted paragraphs. This
|
|
|
|
is an "extended regular expression" if your system supports them,
|
|
|
|
otherwise a literal string. The default value is
|
2003-02-15 16:34:03 +03:00
|
|
|
|
2003-06-11 20:38:35 +04:00
|
|
|
set quotestr "^([\ \\t]*[|>:}#])+"
|
2003-02-15 16:34:03 +03:00
|
|
|
|
2003-08-31 20:44:10 +04:00
|
|
|
if you have regexps, otherwise set quotestr ">\ ". Note that '\\t'
|
2003-06-11 20:38:35 +04:00
|
|
|
above stands for a literal Tab character.
|
2003-02-09 04:28:40 +03:00
|
|
|
.TP
|
2003-08-31 20:44:10 +04:00
|
|
|
\fBset/unset rebinddelete\fP
|
|
|
|
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
|
2004-05-23 00:15:20 +04:00
|
|
|
\fBset/unset smarthome\fP
|
|
|
|
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
|
2003-02-09 04:28:40 +03:00
|
|
|
\fBset/unset smooth\fP
|
|
|
|
Use smooth scrolling by default.
|
|
|
|
.TP
|
2003-02-13 07:01:49 +03:00
|
|
|
\fBset speller \fIspellprog\fP\fP
|
2003-02-15 16:34:03 +03:00
|
|
|
Use spelling checker \fIspellprog\fP instead of the built-in one, which
|
|
|
|
calls \fIspell\fP.
|
2003-02-09 04:28:40 +03:00
|
|
|
.TP
|
|
|
|
\fBset/unset suspend\fP
|
2005-01-17 08:24:26 +03:00
|
|
|
Allow nano to be suspended.
|
2003-02-09 04:28:40 +03:00
|
|
|
.TP
|
2003-02-13 07:01:49 +03:00
|
|
|
\fBset tabsize \fIn\fP\fP
|
2004-02-25 06:58:46 +03:00
|
|
|
Use a tab size of \fIn\fP columns instead of the default (8); must be
|
|
|
|
greater than 0.
|
2003-02-09 04:28:40 +03:00
|
|
|
.TP
|
2005-06-16 03:20:56 +04:00
|
|
|
\fBset/unset tabstospaces\fP
|
|
|
|
Convert typed tabs to spaces.
|
|
|
|
.TP
|
2003-02-09 04:28:40 +03:00
|
|
|
\fBset/unset tempfile\fP
|
|
|
|
Save automatically on exit, don't prompt.
|
|
|
|
.TP
|
|
|
|
\fBset/unset view\fP
|
|
|
|
Disallow file modification.
|
|
|
|
.TP
|
2004-05-29 20:25:30 +04:00
|
|
|
\fBset whitespace "\fIstring\fP"\fP
|
|
|
|
Set the two characters used to display the first characters of tabs and
|
2005-03-27 03:15:51 +04:00
|
|
|
spaces. They must be single-column characters.
|
2004-05-29 20:25:30 +04:00
|
|
|
.TP
|
2003-02-13 07:01:49 +03:00
|
|
|
.B syntax "\fIstr\fP" ["\fIfileregex\fP" ... ]
|
2003-08-31 20:44:10 +04:00
|
|
|
Defines a syntax named \fIstr\fP which can be activated via the \fB-Y\fP
|
|
|
|
flag, or will be automatically activated if the current filename matches
|
|
|
|
\fIfileregex\fP. All following \fBcolor\fP statements will apply to
|
|
|
|
\fIsyntax\fP until a new syntax is defined.
|
2003-02-13 07:01:49 +03:00
|
|
|
.TP
|
2005-06-09 01:30:50 +04:00
|
|
|
.B color \fIfgcolor\fP,\fIbgcolor\fP "\fIregex\fP" ...
|
2003-08-31 20:44:10 +04:00
|
|
|
For the currently defined syntax, display all expressions matching
|
2005-06-09 01:30:50 +04:00
|
|
|
\fIregex\fP with foreground color \fIfgcolor\fP and background color
|
|
|
|
\fIbgcolor\fP, at least one of which must be specified. 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 for the foreground. If your terminal supports
|
|
|
|
transparency, not specifying a \fIbgcolor\fP tells \fBnano\fP to attempt
|
|
|
|
to use a transparent background.
|
|
|
|
.TP
|
|
|
|
.B color \fIfgcolor\fP,\fIbgcolor\fP start="\fIsr\fP" end="\fIer\fP"
|
2003-08-31 20:44:10 +04:00
|
|
|
Display expressions which start with \fIsr\fP and end with \fIer\fP
|
2005-06-09 01:30:50 +04:00
|
|
|
with foreground color \fIfgcolor\fP and background color \fIbgcolor\fP,
|
|
|
|
at least one of which must be specified. This allows syntax
|
|
|
|
highlighting to span multiple lines. Note that all subsequent instances
|
|
|
|
of \fIsr\fP after an initial \fIsr\fP is found will be highlighted until
|
|
|
|
the first instance of \fIer\fP.
|
2003-02-13 07:01:49 +03:00
|
|
|
\fI
|
2003-02-09 04:28:40 +03:00
|
|
|
|
2003-06-11 20:38:35 +04:00
|
|
|
.SH FILES
|
|
|
|
.TP
|
2003-08-31 20:44:10 +04:00
|
|
|
.I SYSCONFDIR/nanorc
|
2003-06-11 20:38:35 +04:00
|
|
|
System-wide configuration file
|
|
|
|
.TP
|
2003-06-29 06:25:46 +04:00
|
|
|
.I ~/.nanorc
|
2003-06-11 20:38:35 +04:00
|
|
|
Per-user configuration file
|
2003-02-09 04:28:40 +03:00
|
|
|
.SH SEE ALSO
|
|
|
|
.PD 0
|
|
|
|
.TP
|
|
|
|
\fBnano\fP(1)
|
|
|
|
.PP
|
2003-08-31 20:44:10 +04:00
|
|
|
\fI/usr/share/doc/nano/examples/nanorc.sample\fP (or equivalent on your
|
2003-06-11 20:38:35 +04:00
|
|
|
system)
|
2003-02-09 04:28:40 +03:00
|
|
|
.SH AUTHOR
|
2003-06-11 20:38:35 +04:00
|
|
|
Chris Allegretta <chrisa@asty.org>, et al (see
|
|
|
|
.I AUTHORS
|
|
|
|
and
|
|
|
|
.I THANKS
|
|
|
|
for details).
|
2003-02-09 04:28:40 +03:00
|
|
|
This manual page was written by Jordi Mallach <jordi@gnu.org>.
|