2003-02-09 01:28:40 +00:00
|
|
|
.\" Hey, EMACS: -*- nroff -*-
|
2006-03-30 07:07:48 +00:00
|
|
|
.\" nanorc.5 is Copyright (C) 2003, 2004, 2005, 2006 by the Free
|
|
|
|
.\" Software Foundation, Inc.
|
2003-02-09 01:28:40 +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.
|
2003-02-09 01:28:40 +00:00
|
|
|
.\"
|
|
|
|
.\" $Id$
|
2006-07-30 23:26:18 +00:00
|
|
|
.TH NANORC 5 "version 1.9.99pre1" "July 30, 2006"
|
2003-02-09 01:28:40 +00:00
|
|
|
.\" Please adjust this date whenever revising the manpage.
|
|
|
|
.\"
|
|
|
|
.SH NAME
|
|
|
|
nanorc \- GNU nano's rcfile
|
|
|
|
.SH DESCRIPTION
|
2006-04-13 03:57:12 +00:00
|
|
|
This manual page briefly documents GNU \fBnano\fP's rcfile.
|
2003-02-09 01:28:40 +00:00
|
|
|
.PP
|
|
|
|
\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
|
2003-02-09 01:28:40 +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-06-11 16:38:35 +00:00
|
|
|
.PP
|
2006-04-27 17:29:19 +00:00
|
|
|
The \fInanorc\fP file contains the default settings for \fBnano\fP. It
|
|
|
|
should not be in DOS or Mac format. During startup, \fBnano\fP will
|
|
|
|
first read its system-wide settings from \fISYSCONFDIR/nanorc\fP, and
|
|
|
|
then user-specific settings from \fI~/.nanorc\fP.
|
2003-02-09 01:28:40 +00:00
|
|
|
|
|
|
|
.SH OPTIONS
|
2006-04-05 13:40:56 +00:00
|
|
|
The configuration file accepts a series of \fBset\fP and \fBunset\fP
|
|
|
|
commands, which can be used to configure nano on startup without using
|
|
|
|
the command line options. Additionally, the \fBsyntax\fP, \fBcolor\fP,
|
|
|
|
and \fBicolor\fP keywords are used to define syntax highlighting rules
|
2006-04-27 18:52:50 +00:00
|
|
|
for different text patterns. \fBnano\fP will read one command per line.
|
2003-02-09 01:28:40 +00:00
|
|
|
|
2006-04-27 18:52:50 +00:00
|
|
|
Options in nanorc files take precedence over nano's defaults, and
|
|
|
|
command line options override nanorc settings. Also, options are unset
|
|
|
|
by default, except for those that take arguments.
|
2003-02-15 13:34:03 +00:00
|
|
|
|
2006-03-12 19:27:32 +00:00
|
|
|
Quotes inside string parameters don't have to be escaped with
|
|
|
|
backslashes. The last double quote in the string will be treated as its
|
2006-04-27 18:52:50 +00:00
|
|
|
end. For example, for the \fBbrackets\fP option, "\fI"')>]}\fP" will
|
|
|
|
match \fI"\fP, \fI'\fP, \fI)\fP, \fI>\fP, \fI]\fP, and \fI}\fP.
|
2006-03-12 19:27:32 +00:00
|
|
|
|
2003-02-09 01:28:40 +00:00
|
|
|
The supported commands and arguments are:
|
|
|
|
|
|
|
|
.TP 3
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set/unset autoindent
|
2003-02-09 01:28:40 +00:00
|
|
|
Use auto-indentation.
|
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set/unset backup
|
2005-06-17 22:11:43 +00:00
|
|
|
Create backup files in \fIfilename~\fP.
|
2003-02-09 01:28:40 +00:00
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set backupdir "\fIdirectory\fP"
|
2005-05-30 02:09:21 +00:00
|
|
|
Set the directory where \fBnano\fP puts unique backup files if file
|
|
|
|
backups are enabled.
|
2005-06-16 18:48:30 +00:00
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set/unset backwards
|
2005-06-16 18:48:30 +00:00
|
|
|
Do backwards searches by default.
|
|
|
|
.TP
|
2006-04-12 15:27:40 +00:00
|
|
|
.B set/unset boldtext
|
|
|
|
Use bold text instead of reverse video text.
|
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set brackets "\fIstring\fP"
|
2006-05-23 16:23:10 +00:00
|
|
|
Set the characters treated as closing brackets when justifying
|
|
|
|
paragraphs. They cannot contain blank characters. Only closing
|
|
|
|
punctuation, optionally followed by closing brackets, can end sentences.
|
|
|
|
The default value is "\fI"')>]}\fP".
|
2004-02-28 16:24:31 +00:00
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set/unset casesensitive
|
2005-06-16 18:48:30 +00:00
|
|
|
Do case sensitive searches by default.
|
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set/unset const
|
2003-02-15 13:34:03 +00:00
|
|
|
Constantly display the cursor position in the status bar.
|
2003-02-09 01:28:40 +00:00
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set/unset cut
|
2005-01-17 05:24:26 +00:00
|
|
|
Use cut to end of line by default.
|
2003-02-09 01:28:40 +00:00
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set fill \fIn\fP
|
2005-06-27 05:01:32 +00:00
|
|
|
Wrap lines at column number \fIn\fP. If \fIn\fP is 0 or less, the
|
|
|
|
maximum line length will be the screen width less \fIn\fP columns. The
|
|
|
|
default value is -8.
|
2003-02-09 01:28:40 +00:00
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set/unset historylog
|
2005-06-17 22:11:43 +00:00
|
|
|
Enable \fI~/.nano_history\fP for saving and reading search/replace
|
|
|
|
strings.
|
2003-06-29 02:25:46 +00:00
|
|
|
.TP
|
2006-01-06 21:51:10 +00:00
|
|
|
.B set matchbrackets "\fIstring\fP"
|
|
|
|
Set the opening and closing brackets that can be found by bracket
|
2006-01-06 22:35:52 +00:00
|
|
|
searches. They cannot contain blank characters. The former set must
|
|
|
|
come before the latter set, and both must be in the same order. The
|
|
|
|
default value is "\fI(<[{)>]}\fP".
|
2006-01-06 21:51:10 +00:00
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set/unset morespace
|
2006-07-30 23:26:18 +00:00
|
|
|
Use the blank line below the titlebar as extra editing space.
|
2005-01-17 05:24:26 +00:00
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set/unset mouse
|
2006-05-24 20:55:44 +00: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
|
|
|
|
System, and on the console when gpm is running.
|
2005-01-17 05:24:26 +00:00
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set/unset multibuffer
|
2003-02-13 04:01:49 +00:00
|
|
|
Allow inserting files into their own buffers.
|
2003-02-09 01:28:40 +00:00
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set/unset noconvert
|
2003-02-09 01:28:40 +00:00
|
|
|
Don't convert files from DOS/Mac format.
|
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set/unset nofollow
|
2003-02-09 01:28:40 +00:00
|
|
|
Don't follow symlinks when writing files.
|
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set/unset nohelp
|
2003-02-09 01:28:40 +00:00
|
|
|
Don't display the help lists at the bottom of the screen.
|
|
|
|
.TP
|
2005-11-05 17:35:44 +00:00
|
|
|
.B set/unset nonewlines
|
|
|
|
Don't add newlines to the ends of files.
|
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set/unset nowrap
|
2003-02-09 01:28:40 +00:00
|
|
|
Don't wrap text at all.
|
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set operatingdir "\fIdirectory\fP"
|
2003-02-15 13:34:03 +00:00
|
|
|
\fBnano\fP will only read and write files inside \fIdirectory\fP and its
|
2003-08-31 16:44:10 +00:00
|
|
|
subdirectories. Also, the current directory is changed to here, so
|
2006-04-27 18:52:50 +00:00
|
|
|
files are inserted from this diractory. By default, the operating
|
|
|
|
directory feature is turned off.
|
2003-02-09 01:28:40 +00:00
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set/unset preserve
|
2003-02-09 01:28:40 +00:00
|
|
|
Preserve the XON and XOFF keys (^Q and ^S).
|
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set punct "\fIstring\fP"
|
2006-05-23 16:23:10 +00:00
|
|
|
Set the characters treated as closing punctuation when justifying
|
|
|
|
paragraphs. They cannot contain blank characters. Only closing
|
|
|
|
punctuation, optionally followed by closing brackets, can end sentences.
|
|
|
|
The default value is "\fI!.?\fP".
|
2004-05-29 16:38:57 +00:00
|
|
|
.TP
|
2005-08-10 22:51:49 +00:00
|
|
|
.B set/unset quickblank
|
2005-06-17 19:06:25 +00:00
|
|
|
Do quick statusbar blanking. Statusbar messages will disappear after 1
|
|
|
|
keystroke instead of 25.
|
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set quotestr "\fIstring\fP"
|
2003-08-31 16:44:10 +00:00
|
|
|
The email-quote string, used to justify email-quoted paragraphs. This
|
2006-04-05 13:40:56 +00:00
|
|
|
is an extended regular expression if your system supports them,
|
2003-08-31 16:44:10 +00:00
|
|
|
otherwise a literal string. The default value is
|
2006-04-05 13:40:56 +00:00
|
|
|
"\fI^([\ \\t]*[#:>\\|}])+\fP" if you have extended regular expression
|
|
|
|
support, or "\fI>\ \fP" otherwise. Note that '\\t' stands for a literal
|
|
|
|
Tab character.
|
2003-02-09 01:28:40 +00:00
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set/unset rebinddelete
|
2003-08-31 16:44:10 +00:00
|
|
|
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
|
2005-08-10 22:51:49 +00:00
|
|
|
.B set/unset 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-06-17 18:00:16 +00:00
|
|
|
.B set/unset regexp
|
2006-04-05 13:40:56 +00:00
|
|
|
Do extended regular expression searches by default.
|
2005-06-16 18:48:30 +00:00
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set/unset smarthome
|
2004-05-22 20:15:20 +00:00
|
|
|
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
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set/unset smooth
|
2003-02-09 01:28:40 +00:00
|
|
|
Use smooth scrolling by default.
|
|
|
|
.TP
|
2006-04-27 18:52:50 +00:00
|
|
|
.B set speller "\fIspellprog\fP"
|
2003-02-15 13:34:03 +00:00
|
|
|
Use spelling checker \fIspellprog\fP instead of the built-in one, which
|
|
|
|
calls \fIspell\fP.
|
2003-02-09 01:28:40 +00:00
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set/unset suspend
|
2006-04-27 18:52:50 +00:00
|
|
|
Allow \fBnano\fP to be suspended.
|
2003-02-09 01:28:40 +00:00
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set tabsize \fIn\fP
|
2005-06-27 05:01:32 +00:00
|
|
|
Use a tab size of \fIn\fP columns. The value of \fIn\fP must be greater
|
|
|
|
than 0. The default value is 8.
|
2003-02-09 01:28:40 +00:00
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set/unset tabstospaces
|
2005-06-15 23:20:56 +00:00
|
|
|
Convert typed tabs to spaces.
|
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set/unset tempfile
|
2003-02-09 01:28:40 +00:00
|
|
|
Save automatically on exit, don't prompt.
|
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set/unset view
|
2003-02-09 01:28:40 +00:00
|
|
|
Disallow file modification.
|
|
|
|
.TP
|
2005-06-17 18:00:16 +00:00
|
|
|
.B set whitespace "\fIstring\fP"
|
2004-05-29 16:25:30 +00:00
|
|
|
Set the two characters used to display the first characters of tabs and
|
2005-03-26 23:15:51 +00:00
|
|
|
spaces. They must be single-column characters.
|
2004-05-29 16:25:30 +00:00
|
|
|
.TP
|
2005-08-10 22:51:49 +00:00
|
|
|
.B set/unset wordbounds
|
|
|
|
Detect word boundaries more accurately by treating punctuation
|
2006-06-26 04:39:31 +00:00
|
|
|
characters as parts of words.
|
2005-08-10 22:51:49 +00:00
|
|
|
.TP
|
2003-02-13 04:01:49 +00:00
|
|
|
.B syntax "\fIstr\fP" ["\fIfileregex\fP" ... ]
|
2006-04-27 18:52:50 +00:00
|
|
|
Defines a syntax named \fIstr\fP which can be activated via the
|
|
|
|
-Y/--syntax command line option, or will be automatically activated if
|
|
|
|
the current filename matches the extended regular expression
|
|
|
|
\fIfileregex\fP. All following \fBcolor\fP and \fBicolor\fP statements
|
|
|
|
will apply to \fIsyntax\fP until a new syntax is defined.
|
2005-08-01 05:08:01 +00:00
|
|
|
|
|
|
|
The \fInone\fP syntax is reserved; specifying it on the command line is
|
|
|
|
the same as not having a syntax at all. The \fIdefault\fP syntax is
|
|
|
|
special: it takes no \fIfileregex\fP, and applies to files that don't
|
|
|
|
match any other syntax's \fIfileregex\fP.
|
2003-02-13 04:01:49 +00:00
|
|
|
.TP
|
2005-06-08 21:30:50 +00:00
|
|
|
.B color \fIfgcolor\fP,\fIbgcolor\fP "\fIregex\fP" ...
|
2003-08-31 16:44:10 +00:00
|
|
|
For the currently defined syntax, display all expressions matching
|
2006-04-05 13:40:56 +00:00
|
|
|
the extended regular expression \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.
|
2005-06-08 21:30:50 +00:00
|
|
|
.TP
|
2005-06-27 03:07:10 +00:00
|
|
|
.B icolor \fIfgcolor\fP,\fIbgcolor\fP "\fIregex\fP" ...
|
|
|
|
Same as above, except that the expression matching is case insensitive.
|
|
|
|
.TP
|
2005-06-08 21:30:50 +00:00
|
|
|
.B color \fIfgcolor\fP,\fIbgcolor\fP start="\fIsr\fP" end="\fIer\fP"
|
2006-04-05 13:40:56 +00:00
|
|
|
Display expressions which start with the extended regular expression
|
|
|
|
\fIsr\fP and end with the extended regular expression \fIer\fP with
|
|
|
|
foreground color \fIfgcolor\fP and background color \fIbgcolor\fP,
|
2005-06-08 21:30:50 +00:00
|
|
|
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.
|
2005-06-27 03:07:10 +00:00
|
|
|
.TP
|
|
|
|
.B icolor \fIfgcolor\fP,\fIbgcolor\fP start="\fIsr\fP" end="\fIer\fP"
|
|
|
|
Same as above, except that the expression matching is case insensitive.
|
2006-04-13 02:43:54 +00:00
|
|
|
.TP
|
|
|
|
.B include "\fIsyntaxfile\fP"
|
|
|
|
Read in self-contained color syntaxes from \fIsyntaxfile\fP. Note that
|
|
|
|
\fIsyntaxfile\fP can only contain \fBsyntax\fP, \fBcolor\fP, and
|
|
|
|
\fBicolor\fP commands.
|
2003-06-11 16:38:35 +00:00
|
|
|
.SH FILES
|
|
|
|
.TP
|
2003-08-31 16:44:10 +00:00
|
|
|
.I SYSCONFDIR/nanorc
|
2003-06-11 16:38:35 +00:00
|
|
|
System-wide configuration file
|
|
|
|
.TP
|
2003-06-29 02:25:46 +00:00
|
|
|
.I ~/.nanorc
|
2003-06-11 16:38:35 +00:00
|
|
|
Per-user configuration file
|
2003-02-09 01:28:40 +00:00
|
|
|
.SH SEE ALSO
|
|
|
|
.PD 0
|
|
|
|
.TP
|
|
|
|
\fBnano\fP(1)
|
|
|
|
.PP
|
2003-08-31 16:44:10 +00:00
|
|
|
\fI/usr/share/doc/nano/examples/nanorc.sample\fP (or equivalent on your
|
2003-06-11 16:38:35 +00:00
|
|
|
system)
|
2003-02-09 01:28:40 +00:00
|
|
|
.SH AUTHOR
|
2005-06-17 22:11:43 +00:00
|
|
|
Chris Allegretta <chrisa@asty.org>, et al (see \fIAUTHORS\fP and
|
2006-07-12 16:50:43 +00:00
|
|
|
\fITHANKS\fP for details). This manual page was originally written by
|
|
|
|
Jordi Mallach <jordi@gnu.org>, for the Debian system (but may be used by
|
|
|
|
others).
|