2003-02-09 04:28:40 +03:00
|
|
|
.\" Hey, EMACS: -*- nroff -*-
|
2009-12-02 06:36:22 +03:00
|
|
|
.\" Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009
|
2007-10-11 09:01:32 +04:00
|
|
|
.\" Free Software Foundation, Inc.
|
2003-02-09 04:28:40 +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/>.
|
2003-02-09 04:28:40 +03:00
|
|
|
.\"
|
|
|
|
.\" $Id$
|
2014-03-03 20:08:45 +04:00
|
|
|
.TH NANORC 5 "version 2.3.3" "March 2014"
|
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
|
2006-04-13 07:57:12 +04:00
|
|
|
This manual page briefly documents GNU \fBnano\fP's rcfile.
|
2003-02-09 04:28:40 +03:00
|
|
|
.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
|
2006-10-28 23:21:12 +04:00
|
|
|
replace" and "go to line and column number".
|
2003-06-11 20:38:35 +04:00
|
|
|
.PP
|
2006-04-27 21:29:19 +04: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 04:28:40 +03:00
|
|
|
|
|
|
|
.SH OPTIONS
|
2006-04-05 17:40:56 +04: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 22:52:50 +04:00
|
|
|
for different text patterns. \fBnano\fP will read one command per line.
|
2003-02-09 04:28:40 +03:00
|
|
|
|
2009-12-02 06:36:22 +03:00
|
|
|
Options in \fInanorc\fP files take precedence over nano's defaults, and
|
|
|
|
command line options override \fInanorc\fP settings. Also, options are
|
|
|
|
unset by default, except for those that take arguments.
|
2003-02-15 16:34:03 +03:00
|
|
|
|
2006-03-12 22:27:32 +03: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 22:52:50 +04: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 22:27:32 +03:00
|
|
|
|
2003-02-09 04:28:40 +03:00
|
|
|
The supported commands and arguments are:
|
|
|
|
|
|
|
|
.TP 3
|
2010-06-21 07:10:10 +04:00
|
|
|
.B set/unset allow_insecure_backup
|
|
|
|
When backing up files, allow the backup to succeed even if its permissions
|
|
|
|
can't be (re)set due to special OS considerations. You should
|
|
|
|
NOT enable this option unless you are sure you need it.
|
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set/unset autoindent
|
2003-02-09 04:28:40 +03:00
|
|
|
Use auto-indentation.
|
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set/unset backup
|
2005-06-18 02:11:43 +04:00
|
|
|
Create backup files in \fIfilename~\fP.
|
2003-02-09 04:28:40 +03:00
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set backupdir "\fIdirectory\fP"
|
2005-05-30 06:09:21 +04:00
|
|
|
Set the directory where \fBnano\fP puts unique backup files if file
|
|
|
|
backups are enabled.
|
2005-06-16 22:48:30 +04:00
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set/unset backwards
|
2005-06-16 22:48:30 +04:00
|
|
|
Do backwards searches by default.
|
|
|
|
.TP
|
2006-04-12 19:27:40 +04:00
|
|
|
.B set/unset boldtext
|
|
|
|
Use bold text instead of reverse video text.
|
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set brackets "\fIstring\fP"
|
2006-05-23 20:23:10 +04: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 19:24:31 +03:00
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set/unset casesensitive
|
2005-06-16 22:48:30 +04:00
|
|
|
Do case sensitive searches by default.
|
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set/unset const
|
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
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set/unset cut
|
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
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set fill \fIn\fP
|
2005-06-27 09:01:32 +04: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
|
2009-11-27 05:50:12 +03:00
|
|
|
default value is \-8.
|
2003-02-09 04:28:40 +03:00
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set/unset historylog
|
2005-06-18 02:11:43 +04:00
|
|
|
Enable \fI~/.nano_history\fP for saving and reading search/replace
|
|
|
|
strings.
|
2003-06-29 06:25:46 +04:00
|
|
|
.TP
|
2013-01-01 07:24:39 +04:00
|
|
|
.B set/unset locking
|
|
|
|
Enable vim-style lock-files for when editing files.
|
|
|
|
.TP
|
2006-01-07 00:51:10 +03:00
|
|
|
.B set matchbrackets "\fIstring\fP"
|
|
|
|
Set the opening and closing brackets that can be found by bracket
|
2006-01-07 01:35:52 +03: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-07 00:51:10 +03:00
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set/unset morespace
|
2006-07-31 03:26:18 +04:00
|
|
|
Use the blank line below the titlebar as extra editing space.
|
2005-01-17 08:24:26 +03:00
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set/unset 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
|
|
|
|
System, and on the console when gpm is running.
|
2005-01-17 08:24:26 +03:00
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set/unset multibuffer
|
2003-02-13 07:01:49 +03:00
|
|
|
Allow inserting files into their own buffers.
|
2003-02-09 04:28:40 +03:00
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set/unset noconvert
|
2003-02-09 04:28:40 +03:00
|
|
|
Don't convert files from DOS/Mac format.
|
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set/unset nofollow
|
2003-02-09 04:28:40 +03:00
|
|
|
Don't follow symlinks when writing files.
|
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set/unset nohelp
|
2003-02-09 04:28:40 +03:00
|
|
|
Don't display the help lists at the bottom of the screen.
|
|
|
|
.TP
|
2005-11-05 20:35:44 +03:00
|
|
|
.B set/unset nonewlines
|
|
|
|
Don't add newlines to the ends of files.
|
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set/unset nowrap
|
2003-02-09 04:28:40 +03:00
|
|
|
Don't wrap text at all.
|
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set operatingdir "\fIdirectory\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
|
2011-02-24 05:14:30 +03:00
|
|
|
files are inserted from this directory. By default, the operating
|
2006-04-27 22:52:50 +04:00
|
|
|
directory feature is turned off.
|
2003-02-09 04:28:40 +03:00
|
|
|
.TP
|
2014-03-03 22:49:52 +04:00
|
|
|
.B set/unset poslog
|
|
|
|
Save the cursor position of files between editing sessions.
|
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set/unset preserve
|
2003-02-09 04:28:40 +03:00
|
|
|
Preserve the XON and XOFF keys (^Q and ^S).
|
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set punct "\fIstring\fP"
|
2006-05-23 20:23:10 +04: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 20:38:57 +04:00
|
|
|
.TP
|
2005-08-11 02:51:49 +04:00
|
|
|
.B set/unset quickblank
|
2005-06-17 23:06:25 +04:00
|
|
|
Do quick statusbar blanking. Statusbar messages will disappear after 1
|
|
|
|
keystroke instead of 25.
|
|
|
|
.TP
|
2014-03-03 22:49:52 +04:00
|
|
|
.B set/unset quiet
|
|
|
|
\fBnano\fP will not report errors in the \fInanorc\fP file nor ask them
|
|
|
|
to be acknowledged by pressing enter at startup. If this is used it
|
|
|
|
should be placed at the top of the file to be fully effective.
|
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set quotestr "\fIstring\fP"
|
2003-08-31 20:44:10 +04:00
|
|
|
The email-quote string, used to justify email-quoted paragraphs. This
|
2006-04-05 17:40:56 +04:00
|
|
|
is an extended regular expression if your system supports them,
|
2003-08-31 20:44:10 +04:00
|
|
|
otherwise a literal string. The default value is
|
2006-04-05 17:40:56 +04: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 04:28:40 +03:00
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set/unset rebinddelete
|
2003-08-31 20:44:10 +04: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-11 02:51:49 +04: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 22:00:16 +04:00
|
|
|
.B set/unset regexp
|
2006-04-05 17:40:56 +04:00
|
|
|
Do extended regular expression searches by default.
|
2005-06-16 22:48:30 +04:00
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set/unset smarthome
|
2004-05-23 00:15:20 +04: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 22:00:16 +04:00
|
|
|
.B set/unset smooth
|
2003-02-09 04:28:40 +03:00
|
|
|
Use smooth scrolling by default.
|
|
|
|
.TP
|
2009-08-17 11:52:10 +04:00
|
|
|
.B set/unset softwrap
|
2013-01-21 07:40:08 +04:00
|
|
|
Enable soft line wrapping for easier viewing of very long lines.
|
2009-08-17 11:52:10 +04:00
|
|
|
.TP
|
2006-04-27 22:52:50 +04:00
|
|
|
.B set speller "\fIspellprog\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
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set/unset suspend
|
2006-04-27 22:52:50 +04:00
|
|
|
Allow \fBnano\fP to be suspended.
|
2003-02-09 04:28:40 +03:00
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set tabsize \fIn\fP
|
2005-06-27 09:01:32 +04: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 04:28:40 +03:00
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set/unset tabstospaces
|
2005-06-16 03:20:56 +04:00
|
|
|
Convert typed tabs to spaces.
|
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set/unset tempfile
|
2003-02-09 04:28:40 +03:00
|
|
|
Save automatically on exit, don't prompt.
|
|
|
|
.TP
|
2009-07-12 10:13:36 +04:00
|
|
|
.B set/unset undo
|
|
|
|
Enable experimental generic-purpose undo code.
|
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set/unset view
|
2003-02-09 04:28:40 +03:00
|
|
|
Disallow file modification.
|
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set whitespace "\fIstring\fP"
|
2004-05-29 20:25:30 +04:00
|
|
|
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
|
2005-08-11 02:51:49 +04:00
|
|
|
.B set/unset wordbounds
|
|
|
|
Detect word boundaries more accurately by treating punctuation
|
2006-06-26 08:39:31 +04:00
|
|
|
characters as parts of words.
|
2005-08-11 02:51:49 +04:00
|
|
|
.TP
|
2003-02-13 07:01:49 +03:00
|
|
|
.B syntax "\fIstr\fP" ["\fIfileregex\fP" ... ]
|
2006-04-27 22:52:50 +04:00
|
|
|
Defines a syntax named \fIstr\fP which can be activated via the
|
2009-11-27 05:50:12 +03:00
|
|
|
\-Y/\-\-syntax command line option, or will be automatically activated if
|
2006-04-27 22:52:50 +04:00
|
|
|
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 09:08:01 +04: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 07:01:49 +03:00
|
|
|
.TP
|
2014-03-03 22:49:52 +04:00
|
|
|
.B linter \fIprogram\fP [\fIarg\fP ... ]
|
2014-03-03 20:08:45 +04:00
|
|
|
For the currently defined syntax, use the given \fIprogram\fR
|
|
|
|
to invoke the linter (this overrides the speller function when
|
|
|
|
defined).
|
2014-02-24 14:18:15 +04:00
|
|
|
.TP
|
2011-02-13 07:23:10 +03:00
|
|
|
.B magic ["\fIregex\fP" ... ]
|
|
|
|
For the currently defined syntax, add one or more regexes which
|
|
|
|
will be compared against the \fBmagic\fP database when attempting
|
2014-03-03 20:08:45 +04:00
|
|
|
to determine which highlighting rules to use for a given file. This
|
2011-02-13 07:23:10 +03:00
|
|
|
functionality only works when \fBlibmagic\fP is installed on the
|
|
|
|
system and will be silently ignored otherwise.
|
|
|
|
.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
|
2006-04-05 17:40:56 +04: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-09 01:30:50 +04:00
|
|
|
.TP
|
2005-06-27 07:07:10 +04:00
|
|
|
.B icolor \fIfgcolor\fP,\fIbgcolor\fP "\fIregex\fP" ...
|
|
|
|
Same as above, except that the expression matching is case insensitive.
|
|
|
|
.TP
|
2005-06-09 01:30:50 +04:00
|
|
|
.B color \fIfgcolor\fP,\fIbgcolor\fP start="\fIsr\fP" end="\fIer\fP"
|
2006-04-05 17:40:56 +04: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-09 01:30:50 +04: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 07:07:10 +04: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 06:43:54 +04: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.
|
2014-03-02 09:27:56 +04:00
|
|
|
.TP
|
|
|
|
.B extendsyntax \fIstr\fP \fIdirective\fP [ \fIarg\fP ... ]
|
|
|
|
Extend the syntax previously defined as \fIstr\fP to include
|
|
|
|
new information. Allows you to add a new \fIcolor\fP, \fIicolor\fP,
|
|
|
|
\fImagic\fP, \fIheader\fP, or \fIlinter\fP directive to a syntax
|
|
|
|
defined. Useful when you want to add to definitions from the
|
|
|
|
system-installed syntax definitions (which are normally not writable).
|
2014-02-27 23:57:52 +04:00
|
|
|
|
2008-03-05 10:35:01 +03:00
|
|
|
.SH KEY BINDINGS
|
|
|
|
Key bindings may be reassigned via the following commands:
|
|
|
|
.TP
|
2014-02-27 23:57:52 +04:00
|
|
|
.B bind \fIkey\fP \fIfunction\fP \fImenu\fP
|
2008-03-05 10:35:01 +03:00
|
|
|
Rebinds the key \fIkey\fP to a new function named \fIfunction\fP in the
|
2014-02-27 23:57:52 +04:00
|
|
|
context of menu \fImenu\fP.
|
|
|
|
.TP
|
|
|
|
.B unbind \fIkey\fP \fImenu\fP
|
|
|
|
Unbinds the key \fIkey\fP from the menu named \fImenu\fP (or from all
|
|
|
|
menus where it exists by using \fBall\fP).
|
|
|
|
|
|
|
|
.TP
|
|
|
|
The format of \fIkey\fP should be one of:
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B ^
|
2008-03-14 07:08:51 +03:00
|
|
|
followed by an alpha character or the word "Space".
|
|
|
|
Example: ^C
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B M-
|
2009-12-02 06:24:18 +03:00
|
|
|
followed by a printable character or the word "Space".
|
2008-03-14 07:08:51 +03:00
|
|
|
Example: M-C
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
2008-03-14 07:08:51 +03:00
|
|
|
.B F
|
2008-03-17 02:57:14 +03:00
|
|
|
followed by a numeric value from 1 to 16.
|
2008-03-14 07:08:51 +03:00
|
|
|
Example: F10
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
2014-02-27 23:57:52 +04:00
|
|
|
|
|
|
|
Valid \fIfunction\fP names to be bound include:
|
|
|
|
|
|
|
|
.TP 2
|
2008-03-05 10:35:01 +03:00
|
|
|
.B help
|
2008-03-14 07:08:51 +03:00
|
|
|
Invoke the help menu.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B cancel
|
2008-03-14 07:08:51 +03:00
|
|
|
Cancel the current command.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B exit
|
2008-03-14 07:08:51 +03:00
|
|
|
Exit from the program.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B writeout
|
2008-03-14 07:08:51 +03:00
|
|
|
Write the current buffer to disk.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B justify
|
2008-03-14 07:08:51 +03:00
|
|
|
Justify the current text.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B insert
|
2008-03-17 02:57:14 +03:00
|
|
|
Insert a file into the current buffer (or into a new buffer when multibuffer
|
|
|
|
is enabled).
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B whereis
|
2008-03-17 02:57:14 +03:00
|
|
|
Search for text in the current buffer.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B searchagain
|
2008-03-17 02:57:14 +03:00
|
|
|
Repeat the last search command.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B up
|
2008-03-14 07:08:51 +03:00
|
|
|
Move up in the editor or browser.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B down
|
2008-03-14 07:08:51 +03:00
|
|
|
Move down in the editor or browser.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B left
|
2008-03-14 07:08:51 +03:00
|
|
|
Move left in the editor or browser.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B right
|
2008-03-14 07:08:51 +03:00
|
|
|
Move right in the editor or browser.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B cut
|
2008-03-14 07:08:51 +03:00
|
|
|
Cut the current line of text and store it.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B uncut
|
2008-03-17 02:57:14 +03:00
|
|
|
Copy the currently stored text into the current buffer position.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B curpos
|
2008-03-14 07:08:51 +03:00
|
|
|
Show the current line, column, word positions in the file.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B firstline
|
2008-03-17 02:57:14 +03:00
|
|
|
Move to the first line of the file.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B lastline
|
2008-03-14 07:08:51 +03:00
|
|
|
Move to the last line of the file.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B gotoline
|
2008-03-14 07:08:51 +03:00
|
|
|
Move to a specific line (and column if specified).
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B replace
|
2008-03-17 02:57:14 +03:00
|
|
|
Interactively replace text within the current buffer.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B mark
|
2008-03-14 07:08:51 +03:00
|
|
|
Begin selecting text for cutting or pasting at the current position.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B copytext
|
2008-03-14 07:08:51 +03:00
|
|
|
Copy the currently marked text without deleting it.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B indent
|
2008-03-14 07:08:51 +03:00
|
|
|
Indent the currently marked text (shift to the right).
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B unindent
|
2008-03-14 07:08:51 +03:00
|
|
|
Un-indent the currently marked text (shift to the left).
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B nextword
|
2008-03-14 07:08:51 +03:00
|
|
|
Move the cursor to the beginning of the next word.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B prevword
|
2008-03-14 07:08:51 +03:00
|
|
|
Move the cursor to the beginning of the previous word.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B home
|
2008-03-14 07:08:51 +03:00
|
|
|
Move the cursor to the beginning of the current line.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B end
|
2008-03-14 07:08:51 +03:00
|
|
|
Move the cursor to the end of the current line.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B beginpara
|
2008-03-17 02:57:14 +03:00
|
|
|
Move the cursor to the beginning of the current paragraph.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B endpara
|
2008-03-17 02:57:14 +03:00
|
|
|
Move the cursor to the end of the current paragraph.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B findbracket
|
2008-03-17 02:57:14 +03:00
|
|
|
Move the cursor to the matching bracket (brace, parenthesis, etc.) of the one
|
|
|
|
under the cursor.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B scrollup
|
2008-03-14 07:08:51 +03:00
|
|
|
Scroll up one line of text from the current position.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B scrolldown
|
2008-03-14 07:08:51 +03:00
|
|
|
Scroll down one line of text from the current position.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B prevbuf
|
2008-03-14 07:08:51 +03:00
|
|
|
Switch to editing/viewing the previous buffer when using multibuffer mode.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B nextbuf
|
2008-03-14 07:08:51 +03:00
|
|
|
Switch to editing/viewing the next buffer when using multibuffer mode.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B verbatim
|
2008-03-14 07:08:51 +03:00
|
|
|
Insert the next character verbatim into the file.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B tab
|
2008-03-14 07:08:51 +03:00
|
|
|
Insert a tab at the current cursor location.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B enter
|
2008-03-14 07:08:51 +03:00
|
|
|
Insert a new line below the current one.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B delete
|
2008-03-14 07:08:51 +03:00
|
|
|
Delete the character under the cursor.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B fulljustify
|
2008-03-14 07:08:51 +03:00
|
|
|
Justify the entire current file.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B wordcount
|
2008-03-14 07:08:51 +03:00
|
|
|
Count the number of words in the current buffer.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B refresh
|
2008-03-17 02:57:14 +03:00
|
|
|
Refresh the screen.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
2008-07-13 05:36:06 +04:00
|
|
|
.B undo
|
|
|
|
Undo the text action peformed (add text, delete text, etc).
|
|
|
|
.TP
|
2008-10-14 20:46:58 +04:00
|
|
|
.B redo
|
2009-12-02 06:36:22 +03:00
|
|
|
Redo the last undone action (i.e., undo an undo).
|
2008-07-13 05:36:06 +04:00
|
|
|
.TP
|
2008-03-14 07:08:51 +03:00
|
|
|
.B suspend
|
2008-03-17 02:57:14 +03:00
|
|
|
Suspend the editor (if the suspend function is enabled, see the
|
|
|
|
"suspendenable" entry below).
|
2008-03-14 07:08:51 +03:00
|
|
|
.TP
|
2008-03-05 10:35:01 +03:00
|
|
|
.B casesens
|
2008-03-14 07:08:51 +03:00
|
|
|
Toggle case sensitivity in searching (search/replace menus only).
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B regexp
|
2008-03-17 02:57:14 +03:00
|
|
|
Toggle whether searching/replacing is based on literal strings or regular expressions.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B prevhistory
|
2008-03-14 07:08:51 +03:00
|
|
|
Show the previous history entry in the prompt menus (e.g. search).
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B nexthistory
|
2008-03-14 07:08:51 +03:00
|
|
|
Show the next history entry in the prompt menus (e.g. search).
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B dontreplace
|
2008-03-14 07:08:51 +03:00
|
|
|
Switch back to searching instead of replacing.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B gototext
|
2008-03-17 02:57:14 +03:00
|
|
|
Search for files matching a string in the file browser (reading or writing files).
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B dosformat
|
2008-03-14 07:08:51 +03:00
|
|
|
When writing a file, switch to writing a DOS format (CR/LF).
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B macformat
|
2008-03-14 07:08:51 +03:00
|
|
|
When writing a file, switch to writing a Mac format.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B append
|
2008-03-14 07:08:51 +03:00
|
|
|
When writing a file, append to the end instead of overwriting.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B prepend
|
2008-03-14 07:08:51 +03:00
|
|
|
When writing a file, 'prepend' (write at the beginning) instead of overwriting.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B backup
|
2010-04-15 01:55:39 +04:00
|
|
|
When writing a file, create a backup of the current file.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B firstfile
|
2008-03-14 07:08:51 +03:00
|
|
|
Move to the first file when using the file browser (reading or writing files).
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B lastfile
|
2008-03-14 07:08:51 +03:00
|
|
|
Move to the last file when using the file browser (reading or writing files).
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B nohelp
|
2008-03-17 02:57:14 +03:00
|
|
|
Toggle showing/hiding the two-line list of key bindings at the bottom of the screen.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B constupdate
|
2014-03-20 01:30:08 +04:00
|
|
|
Toggle the constant display of the current line, column, and word positions.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B morespace
|
2008-03-17 02:57:14 +03:00
|
|
|
Toggle showing/hiding the blank line which 'separates' the 'title' from the file text.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B smoothscroll
|
2008-03-14 07:08:51 +03:00
|
|
|
Toggle smooth scrolling when moving via the arrow keys.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
2008-03-17 02:57:14 +03:00
|
|
|
.B whitespacedisplay
|
2014-03-20 01:30:08 +04:00
|
|
|
Toggle the showing of whitespace.
|
|
|
|
.TP
|
|
|
|
.B nosyntax
|
|
|
|
Toggle syntax highlighting.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
2014-03-20 01:09:08 +04:00
|
|
|
.B softwrap
|
2014-03-20 01:30:08 +04:00
|
|
|
Toggle the displaying of overlong lines on multiple screen lines.
|
2014-03-20 01:09:08 +04:00
|
|
|
.TP
|
2008-03-05 10:35:01 +03:00
|
|
|
.B smarthome
|
2008-03-14 07:08:51 +03:00
|
|
|
Toggle whether the smart home key function is enabled.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B autoindent
|
2008-03-17 02:57:14 +03:00
|
|
|
Toggle whether new lines will contain the same amount of whitespace as the line above.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B cuttoend
|
2008-03-17 02:57:14 +03:00
|
|
|
Toggle whether cutting text will cut the whole line or just from the current cursor
|
|
|
|
position to the end of the line.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B nowrap
|
2014-03-20 01:30:08 +04:00
|
|
|
Toggle whether long lines will be hard-wrapped to the next line.
|
|
|
|
.TP
|
|
|
|
.B tabstospaces
|
|
|
|
Toggle whether typed tabs will be converted to spaces.
|
|
|
|
.TP
|
|
|
|
.B backupfile
|
|
|
|
Toggle whether a backup will be made of the file to be edited.
|
|
|
|
.TP
|
|
|
|
.B multibuffer
|
|
|
|
Toggle the use of multiple file buffers (if available).
|
|
|
|
.TP
|
|
|
|
.B mouse
|
|
|
|
Toggle mouse support.
|
|
|
|
.TP
|
|
|
|
.B noconvert
|
|
|
|
Toggle automatic conversion of files from DOS/Mac format.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
2008-03-14 07:08:51 +03:00
|
|
|
.B suspendenable
|
|
|
|
Toggle whether the suspend sequence (normally ^Z) will suspend the editor window.
|
|
|
|
.TP
|
2008-03-05 10:35:01 +03:00
|
|
|
|
2014-02-27 23:57:52 +04:00
|
|
|
Valid \fImenu\fP sections are:
|
|
|
|
|
|
|
|
.TP 2
|
2008-03-05 10:35:01 +03:00
|
|
|
.B main
|
2008-03-14 07:08:51 +03:00
|
|
|
The main editor window where text is entered.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B search
|
2008-03-14 07:08:51 +03:00
|
|
|
The search menu (AKA whereis).
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B replace
|
2008-03-14 07:08:51 +03:00
|
|
|
The 'search to replace' menu.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B replacewith
|
2008-03-14 07:08:51 +03:00
|
|
|
The 'replace with' menu, which comes up after 'search to replace'.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B gotoline
|
2008-03-14 07:08:51 +03:00
|
|
|
The 'goto line (and column)' menu.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B writeout
|
2008-03-14 07:08:51 +03:00
|
|
|
The 'write file' menu.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B insert
|
2008-03-14 07:08:51 +03:00
|
|
|
The 'insert file' menu.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B extcmd
|
2014-02-27 23:57:52 +04:00
|
|
|
The menu for inserting output from an external command, reached from the insert menu.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B help
|
2008-03-14 07:08:51 +03:00
|
|
|
The help menu.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B spell
|
2008-03-14 07:08:51 +03:00
|
|
|
The interactive spell checker Yes/no menu.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B browser
|
2008-03-14 07:08:51 +03:00
|
|
|
The file browser for inserting or writing a file.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B whereisfile
|
2008-03-14 07:08:51 +03:00
|
|
|
The 'search for a file' menu in the file browser.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B gotodir
|
2008-03-17 02:57:14 +03:00
|
|
|
The 'go to directory' menu.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B all
|
2008-03-17 02:57:14 +03:00
|
|
|
A special name meaning: apply to all menus where this function exists.
|
2009-11-21 19:26:59 +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
|
2005-06-18 02:11:43 +04:00
|
|
|
Chris Allegretta <chrisa@asty.org>, et al (see \fIAUTHORS\fP and
|
2006-07-12 20:50:43 +04: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).
|