Blame doc/nanorc.5.html

Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
"http://www.w3.org/TR/html4/loose.dtd">
Packit 1ac44c
<html>
Packit 1ac44c
<head>
Packit 1ac44c
<meta name="generator" content="groff -Thtml, see www.gnu.org">
Packit 1ac44c
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
Packit 1ac44c
<meta name="Content-Style" content="text/css">
Packit 1ac44c
<style type="text/css">
Packit 1ac44c
       p       { margin-top: 0; margin-bottom: 0; vertical-align: top }
Packit 1ac44c
       pre     { margin-top: 0; margin-bottom: 0; vertical-align: top }
Packit 1ac44c
       table   { margin-top: 0; margin-bottom: 0; vertical-align: top }
Packit 1ac44c
       h1      { text-align: center }
Packit 1ac44c
</style>
Packit 1ac44c
<title>NANORC</title>
Packit 1ac44c
Packit 1ac44c
</head>
Packit 1ac44c
<body>
Packit 1ac44c
Packit 1ac44c

NANORC

Packit 1ac44c
Packit 1ac44c
NAME
Packit 1ac44c
DESCRIPTION
Packit 1ac44c
OPTIONS
Packit 1ac44c
SYNTAX HIGHLIGHTING
Packit 1ac44c
REBINDING KEYS
Packit 1ac44c
FILES
Packit 1ac44c
SEE ALSO
Packit 1ac44c
AUTHOR
Packit 1ac44c
Packit 1ac44c

Packit 1ac44c
Packit 1ac44c
Packit 1ac44c

NAME

Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c

nanorc −

Packit 1ac44c
GNU nano’s configuration file

Packit 1ac44c
Packit 1ac44c

DESCRIPTION

Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c

The

Packit 1ac44c
nanorc file contains the default settings for
Packit 1ac44c
nano, a small and friendly editor. The file should be
Packit 1ac44c
in Unix format, not in DOS or Mac format. During startup,
Packit 1ac44c
nano will first read the system-wide settings, from
Packit 1ac44c
/etc/nanorc (the exact path might be different on
Packit 1ac44c
your system), and then the user-specific settings, either
Packit 1ac44c
from ~/.nanorc or from
Packit 1ac44c
$XDG_CONFIG_HOME/nano/nanorc or from
Packit 1ac44c
~/.config/nano/nanorc, whichever is encountered
Packit 1ac44c
first.

Packit 1ac44c
Packit 1ac44c

OPTIONS

Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c

The

Packit 1ac44c
configuration file accepts a series of set and
Packit 1ac44c
unset commands, which can be used to configure nano
Packit 1ac44c
on startup without using command-line options. Additionally,
Packit 1ac44c
there are some commands to define syntax highlighting and to
Packit 1ac44c
rebind keys -- see the two separate sections on those.
Packit 1ac44c
nano reads one command per line.

Packit 1ac44c
Packit 1ac44c

Options in

Packit 1ac44c
nanorc files take precedence over nano’s
Packit 1ac44c
defaults, and command-line options override nanorc
Packit 1ac44c
settings. Also, options that do not take an argument are
Packit 1ac44c
unset by default. So using the unset command is only
Packit 1ac44c
needed when wanting to override a setting of the
Packit 1ac44c
system’s nanorc file in your own nanorc.
Packit 1ac44c
Options that take an argument cannot be unset.

Packit 1ac44c
Packit 1ac44c

Below, the

Packit 1ac44c
string parameters need to be enclosed in double
Packit 1ac44c
quotes. Quotes inside these string parameters don’t
Packit 1ac44c
have to be escaped with backslashes. The last double quote
Packit 1ac44c
in the string will be treated as its end. For example, for
Packit 1ac44c
the brackets option,
Packit 1ac44c
""’)>]}" will match
Packit 1ac44c
", , ), >,
Packit 1ac44c
], and }.

Packit 1ac44c
Packit 1ac44c

The supported

Packit 1ac44c
commands and arguments are: 
Packit 1ac44c
set afterends

Packit 1ac44c
Packit 1ac44c

Make Ctrl+Right stop at word

Packit 1ac44c
ends instead of beginnings.

Packit 1ac44c
Packit 1ac44c

set

Packit 1ac44c
allow_insecure_backup

Packit 1ac44c
Packit 1ac44c

When backing up files, allow

Packit 1ac44c
the backup to succeed even if its permissions can’t be
Packit 1ac44c
(re)set due to special OS considerations. You should NOT
Packit 1ac44c
enable this option unless you are sure you need it.

Packit 1ac44c
Packit 1ac44c

set atblanks

Packit 1ac44c
Packit 1ac44c

When soft line wrapping is

Packit 1ac44c
enabled, make it wrap lines at blank characters (tabs and
Packit 1ac44c
spaces) instead of always at the edge of the screen.

Packit 1ac44c
Packit 1ac44c

set autoindent

Packit 1ac44c
Packit 1ac44c

Automatically indent a newly

Packit 1ac44c
created line to the same number of tabs and/or spaces as the
Packit 1ac44c
previous line (or as the next line if the previous line is
Packit 1ac44c
the beginning of a paragraph).

Packit 1ac44c
Packit 1ac44c

set backup

Packit 1ac44c
Packit 1ac44c

When saving a file, create a

Packit 1ac44c
backup file by adding a tilde (~) to the file’s
Packit 1ac44c
name.

Packit 1ac44c
Packit 1ac44c

set backupdir

Packit 1ac44c
directory

Packit 1ac44c
Packit 1ac44c

Make and keep not just one

Packit 1ac44c
backup file, but make and keep a uniquely numbered one every
Packit 1ac44c
time a file is saved -- when backups are enabled with set
Packit 1ac44c
backup or −−backup or
Packit 1ac44c
−B. The uniquely numbered files are stored in
Packit 1ac44c
the specified directory.

Packit 1ac44c
Packit 1ac44c

set backwards

Packit 1ac44c
Packit 1ac44c

Obsolete option. Recognized but

Packit 1ac44c
ignored. ^Q is available to start a backward
Packit 1ac44c
search.

Packit 1ac44c
Packit 1ac44c

set boldtext

Packit 1ac44c
Packit 1ac44c

Use bold instead of reverse

Packit 1ac44c
video for the title bar, status bar, key combos, function
Packit 1ac44c
tags, line numbers, and selected text. This can be
Packit 1ac44c
overridden by setting the options titlecolor,
Packit 1ac44c
statuscolor, keycolor, functioncolor,
Packit 1ac44c
numbercolor, and selectedcolor.

Packit 1ac44c
Packit 1ac44c

set brackets

Packit 1ac44c
string

Packit 1ac44c
Packit 1ac44c

Set the characters treated as

Packit 1ac44c
closing brackets when justifying paragraphs. This may not
Packit 1ac44c
include blank characters. Only closing punctuation (see
Packit 1ac44c
set punct), optionally followed by the specified
Packit 1ac44c
closing brackets, can end sentences. The default value is
Packit 1ac44c
""’)>]}".

Packit 1ac44c
Packit 1ac44c

set casesensitive

Packit 1ac44c
Packit 1ac44c

Do case-sensitive searches by

Packit 1ac44c
default.

Packit 1ac44c
Packit 1ac44c

set constantshow

Packit 1ac44c
Packit 1ac44c

Constantly display the cursor

Packit 1ac44c
position in the status bar. This overrides the option
Packit 1ac44c
quickblank.

Packit 1ac44c
Packit 1ac44c

set cutfromcursor

Packit 1ac44c
Packit 1ac44c

Use

Packit 1ac44c
cut-from-cursor-to-end-of-line by default, instead of
Packit 1ac44c
cutting the whole line. (The old form of this option,
Packit 1ac44c
set cut’, is deprecated.)

Packit 1ac44c
Packit 1ac44c

set errorcolor

Packit 1ac44c
fgcolor,bgcolor

Packit 1ac44c
Packit 1ac44c

Use this color combination for

Packit 1ac44c
the status bar when an error message is displayed. See
Packit 1ac44c
set titlecolor for valid color names.

Packit 1ac44c
Packit 1ac44c

set fill

Packit 1ac44c
number

Packit 1ac44c
Packit 1ac44c

Hard-wrap lines at column

Packit 1ac44c
number number. If number is 0 or less, the
Packit 1ac44c
maximum line length will be the screen width less
Packit 1ac44c
number columns. The default value is −8.
Packit 1ac44c
This option conflicts with nowrap -- the last one
Packit 1ac44c
given takes effect.

Packit 1ac44c
Packit 1ac44c

set functioncolor

Packit 1ac44c
fgcolor,bgcolor

Packit 1ac44c
Packit 1ac44c

Specify the color combination

Packit 1ac44c
to use for the function descriptions in the two help lines
Packit 1ac44c
at the bottom of the screen. See set titlecolor for
Packit 1ac44c
more details.

Packit 1ac44c
Packit 1ac44c

set historylog

Packit 1ac44c
Packit 1ac44c

Save the last hundred search

Packit 1ac44c
strings and replacement strings and executed commands, so
Packit 1ac44c
they can be easily reused in later sessions.

Packit 1ac44c
Packit 1ac44c

set keycolor

Packit 1ac44c
fgcolor,bgcolor

Packit 1ac44c
Packit 1ac44c

Specify the color combination

Packit 1ac44c
to use for the shortcut key combos in the two help lines at
Packit 1ac44c
the bottom of the screen. See set titlecolor for more
Packit 1ac44c
details.

Packit 1ac44c
Packit 1ac44c

set linenumbers

Packit 1ac44c
Packit 1ac44c

Display line numbers to the

Packit 1ac44c
left of the text area.

Packit 1ac44c
Packit 1ac44c

set locking

Packit 1ac44c
Packit 1ac44c

Enable vim-style lock-files for

Packit 1ac44c
when editing files.

Packit 1ac44c
Packit 1ac44c

set matchbrackets

Packit 1ac44c
string

Packit 1ac44c
Packit 1ac44c

Set the opening and closing

Packit 1ac44c
brackets that can be found by bracket searches. This may not
Packit 1ac44c
include blank characters. The opening set must come before
Packit 1ac44c
the closing set, and the two sets must be in the same order.
Packit 1ac44c
The default value is "(<[{)>]}".

Packit 1ac44c
Packit 1ac44c

set morespace

Packit 1ac44c
Packit 1ac44c

Use the blank line below the

Packit 1ac44c
title bar as extra editing space.

Packit 1ac44c
Packit 1ac44c

set mouse

Packit 1ac44c
Packit 1ac44c

Enable mouse support, if

Packit 1ac44c
available for your system. When enabled, mouse clicks can be
Packit 1ac44c
used to place the cursor, set the mark (with a double
Packit 1ac44c
click), and execute shortcuts. The mouse will work in the X
Packit 1ac44c
Window System, and on the console when gpm is running. Text
Packit 1ac44c
can still be selected through dragging by holding down the
Packit 1ac44c
Shift key.

Packit 1ac44c
Packit 1ac44c

set multibuffer

Packit 1ac44c
Packit 1ac44c

When reading in a file with ^R,

Packit 1ac44c
insert it into a new buffer by default.

Packit 1ac44c
Packit 1ac44c

set noconvert

Packit 1ac44c
Packit 1ac44c

Don’t convert files from

Packit 1ac44c
DOS/Mac format.

Packit 1ac44c
Packit 1ac44c

set nohelp

Packit 1ac44c
Packit 1ac44c

Don’t display the two

Packit 1ac44c
help lines at the bottom of the screen.

Packit 1ac44c
Packit 1ac44c

set nonewlines

Packit 1ac44c
Packit 1ac44c

When a file does not end with a

Packit 1ac44c
newline, don’t automatically add one.

Packit 1ac44c
Packit 1ac44c

set nopauses

Packit 1ac44c
Packit 1ac44c

Don’t pause between

Packit 1ac44c
warnings at startup. This means that only the last one will
Packit 1ac44c
be visible (when there are multiple ones).

Packit 1ac44c
Packit 1ac44c

set nowrap

Packit 1ac44c
Packit 1ac44c

Don’t hard-wrap text at

Packit 1ac44c
all. This option conflicts with fill -- the last one
Packit 1ac44c
given takes effect.

Packit 1ac44c
Packit 1ac44c

set numbercolor

Packit 1ac44c
fgcolor,bgcolor

Packit 1ac44c
Packit 1ac44c

Specify the color combination

Packit 1ac44c
to use for line numbers. See set titlecolor for more
Packit 1ac44c
details.

Packit 1ac44c
Packit 1ac44c

set operatingdir

Packit 1ac44c
directory

Packit 1ac44c
Packit 1ac44c

nano will only read and

Packit 1ac44c
write files inside directory and its subdirectories.
Packit 1ac44c
Also, the current directory is changed to here, so files are
Packit 1ac44c
inserted from this directory. By default, the operating
Packit 1ac44c
directory feature is turned off.

Packit 1ac44c
Packit 1ac44c

set positionlog

Packit 1ac44c
Packit 1ac44c

Save the cursor position of

Packit 1ac44c
files between editing sessions. The cursor position is
Packit 1ac44c
remembered for the 200 most-recently edited files.

Packit 1ac44c
Packit 1ac44c

set preserve

Packit 1ac44c
Packit 1ac44c

Preserve the XON and XOFF keys

Packit 1ac44c
(^Q and ^S).

Packit 1ac44c
Packit 1ac44c

set punct

Packit 1ac44c
string

Packit 1ac44c
Packit 1ac44c

Set the characters treated as

Packit 1ac44c
closing punctuation when justifying paragraphs. This may not
Packit 1ac44c
include blank characters. Only the specfified closing
Packit 1ac44c
punctuation, optionally followed by closing brackets (see
Packit 1ac44c
brackets), can end sentences. The default value is
Packit 1ac44c
"!.?".

Packit 1ac44c
Packit 1ac44c

set quickblank

Packit 1ac44c
Packit 1ac44c

Do quick status-bar blanking:

Packit 1ac44c
status-bar messages will disappear after 1 keystroke instead
Packit 1ac44c
of 25. The option constantshow overrides this.

Packit 1ac44c
Packit 1ac44c

set quiet

Packit 1ac44c
Packit 1ac44c

Obsolete option. Recognized but

Packit 1ac44c
ignored.

Packit 1ac44c
Packit 1ac44c

set quotestr

Packit 1ac44c
regex

Packit 1ac44c
Packit 1ac44c

The email-quote string, used to

Packit 1ac44c
justify email-quoted paragraphs. This is an extended regular
Packit 1ac44c
expression. The default value is
Packit 1ac44c
"^([ \t]*([#:>|}]|//))+". Note that
Packit 1ac44c
\t stands for an actual Tab character.

Packit 1ac44c
Packit 1ac44c

set rebinddelete

Packit 1ac44c
Packit 1ac44c

Interpret the Delete key

Packit 1ac44c
differently so that both Backspace and Delete work properly.
Packit 1ac44c
You should only need to use this option if Backspace acts
Packit 1ac44c
like Delete on your system.

Packit 1ac44c
Packit 1ac44c

set rebindkeypad

Packit 1ac44c
Packit 1ac44c

Interpret the numeric keypad

Packit 1ac44c
keys so that they all work properly. You should only need to
Packit 1ac44c
use this option if they don’t, as mouse support
Packit 1ac44c
won’t work properly with this option enabled.

Packit 1ac44c
Packit 1ac44c

set regexp

Packit 1ac44c
Packit 1ac44c

Do extended regular expression

Packit 1ac44c
searches by default.

Packit 1ac44c
Packit 1ac44c

set selectedcolor

Packit 1ac44c
fgcolor,bgcolor

Packit 1ac44c
Packit 1ac44c

Specify the color combination

Packit 1ac44c
to use for selected text. See set titlecolor for more
Packit 1ac44c
details.

Packit 1ac44c
Packit 1ac44c

set showcursor

Packit 1ac44c
Packit 1ac44c

Put the cursor on the

Packit 1ac44c
highlighted item in the file browser, to aid braille
Packit 1ac44c
users.

Packit 1ac44c
Packit 1ac44c

set smarthome

Packit 1ac44c
Packit 1ac44c

Make the Home key smarter. When

Packit 1ac44c
Home is pressed anywhere but at the very beginning of
Packit 1ac44c
non-whitespace characters on a line, the cursor will jump to
Packit 1ac44c
that beginning (either forwards or backwards). If the cursor
Packit 1ac44c
is already at that position, it will jump to the true
Packit 1ac44c
beginning of the line.

Packit 1ac44c
Packit 1ac44c

set smooth

Packit 1ac44c
Packit 1ac44c

Use smooth scrolling by

Packit 1ac44c
default.

Packit 1ac44c
Packit 1ac44c

set softwrap

Packit 1ac44c
Packit 1ac44c

Enable soft line wrapping for

Packit 1ac44c
easier viewing of very long lines.

Packit 1ac44c
Packit 1ac44c

set speller

Packit 1ac44c
program

Packit 1ac44c
Packit 1ac44c

Use the given program to

Packit 1ac44c
do spell checking and correcting, instead of the built-in
Packit 1ac44c
corrector that calls spell.

Packit 1ac44c
Packit 1ac44c

set statuscolor

Packit 1ac44c
fgcolor,bgcolor

Packit 1ac44c
Packit 1ac44c

Specify the color combination

Packit 1ac44c
to use for the status bar. See set titlecolor for
Packit 1ac44c
more details.

Packit 1ac44c
Packit 1ac44c

set suspend

Packit 1ac44c
Packit 1ac44c

Allow nano to be

Packit 1ac44c
suspended.

Packit 1ac44c
Packit 1ac44c

set tabsize

Packit 1ac44c
number

Packit 1ac44c
Packit 1ac44c

Use a tab size of number

Packit 1ac44c
columns. The value of number must be greater than 0.
Packit 1ac44c
The default value is 8.

Packit 1ac44c
Packit 1ac44c

set tabstospaces

Packit 1ac44c
Packit 1ac44c

Convert typed tabs to

Packit 1ac44c
spaces.

Packit 1ac44c
Packit 1ac44c

set tempfile

Packit 1ac44c
Packit 1ac44c

Save automatically on exit,

Packit 1ac44c
don’t prompt.

Packit 1ac44c
Packit 1ac44c

set titlecolor

Packit 1ac44c
fgcolor,bgcolor

Packit 1ac44c
Packit 1ac44c

Specify the color combination

Packit 1ac44c
to use for the title bar. Valid names for the foreground and
Packit 1ac44c
background colors are: white, black,
Packit 1ac44c
blue, green, red, cyan,
Packit 1ac44c
yellow, magenta, and normal -- where
Packit 1ac44c
normal means the default foreground or background
Packit 1ac44c
color. The name of the foreground color may be prefixed with
Packit 1ac44c
bright. And either "fgcolor" or
Packit 1ac44c
",bgcolor" may be left out.

Packit 1ac44c
Packit 1ac44c

set trimblanks

Packit 1ac44c
Packit 1ac44c

Remove trailing whitespace from

Packit 1ac44c
wrapped lines when automatic hard-wrapping occurs or when
Packit 1ac44c
text is justified. (The old form of this option,
Packit 1ac44c
set justifytrim’, is deprecated.)

Packit 1ac44c
Packit 1ac44c

set unix

Packit 1ac44c
Packit 1ac44c

Save a file by default in Unix

Packit 1ac44c
format. This overrides nano’s default behavior of
Packit 1ac44c
saving a file in the format that it had. (This option has no
Packit 1ac44c
effect when you also use set noconvert.)

Packit 1ac44c
Packit 1ac44c

set view

Packit 1ac44c
Packit 1ac44c

Disallow file modification.

Packit 1ac44c
Packit 1ac44c

set whitespace

Packit 1ac44c
string

Packit 1ac44c
Packit 1ac44c

Set the two characters used to

Packit 1ac44c
indicate the presence of tabs and spaces. They must be
Packit 1ac44c
single-column characters. The default pair for a UTF-8
Packit 1ac44c
locale is "»⋅", and for other
Packit 1ac44c
locales ">.".

Packit 1ac44c
Packit 1ac44c

set wordbounds

Packit 1ac44c
Packit 1ac44c

Detect word boundaries

Packit 1ac44c
differently by treating punctuation characters as parts of
Packit 1ac44c
words.

Packit 1ac44c
Packit 1ac44c

set wordchars

Packit 1ac44c
string

Packit 1ac44c
Packit 1ac44c

Specify which other characters

Packit 1ac44c
(besides the normal alphanumeric ones) should be considered
Packit 1ac44c
as parts of words. This overrides the option
Packit 1ac44c
wordbounds.

Packit 1ac44c
Packit 1ac44c

SYNTAX HIGHLIGHTING

Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c

Coloring the

Packit 1ac44c
different syntactic elements of a file is done via regular
Packit 1ac44c
expressions (see the color command below). This is
Packit 1ac44c
inherently imperfect, because regular expressions are not
Packit 1ac44c
powerful enough to fully parse a file. Nevertheless, regular
Packit 1ac44c
expressions can do a lot and are easy to make, so they are a
Packit 1ac44c
good fit for a small editor like nano.

Packit 1ac44c
Packit 1ac44c

For each kind

Packit 1ac44c
of file a separate syntax can be defined via the following
Packit 1ac44c
commands: 
Packit 1ac44c
syntax name
Packit 1ac44c
["fileregex" ...]

Packit 1ac44c
Packit 1ac44c

Start the definition of a

Packit 1ac44c
syntax with this name. All subsequent color
Packit 1ac44c
and other such commands will be added to this syntax, until
Packit 1ac44c
a new syntax command is encountered.

Packit 1ac44c
Packit 1ac44c

When

Packit 1ac44c
nano is run, this syntax will be automatically
Packit 1ac44c
activated if the current filename matches the extended
Packit 1ac44c
regular expression fileregex. Or the syntax can be
Packit 1ac44c
explicitly activated by using the -Y or
Packit 1ac44c
−−syntax command-line option followed by
Packit 1ac44c
the name.

Packit 1ac44c
Packit 1ac44c

The syntax

Packit 1ac44c
default is special: it takes no fileregex, and
Packit 1ac44c
applies to files that don’t match any syntax’s
Packit 1ac44c
regexes. The syntax none is reserved; specifying it
Packit 1ac44c
on the command line is the same as not having a syntax at
Packit 1ac44c
all.

Packit 1ac44c
Packit 1ac44c

header

Packit 1ac44c
"regex" ...

Packit 1ac44c
Packit 1ac44c

If from all defined syntaxes no

Packit 1ac44c
fileregex matched, then compare this regex (or
Packit 1ac44c
regexes) against the first line of the current file, to
Packit 1ac44c
determine whether this syntax should be used for it.

Packit 1ac44c
Packit 1ac44c

magic

Packit 1ac44c
"regex" ...

Packit 1ac44c
Packit 1ac44c

If no fileregex matched

Packit 1ac44c
and no header regex matched either, then compare this
Packit 1ac44c
regex (or regexes) against the result of querying the
Packit 1ac44c
magic database about the current file, to determine
Packit 1ac44c
whether this syntax should be used for it. (This
Packit 1ac44c
functionality only works when libmagic is installed
Packit 1ac44c
on the system and will be silently ignored otherwise.)

Packit 1ac44c
Packit 1ac44c

linter program

Packit 1ac44c
[arg ...]

Packit 1ac44c
Packit 1ac44c

Use the given program to

Packit 1ac44c
run a syntax check on the current buffer. (This overrides
Packit 1ac44c
the speller function.)

Packit 1ac44c
Packit 1ac44c

formatter program

Packit 1ac44c
[arg ...]

Packit 1ac44c
Packit 1ac44c

Use the given program to

Packit 1ac44c
automatically reformat the text in the current buffer --
Packit 1ac44c
useful in a programming language like Go. (This overrides
Packit 1ac44c
the speller and linter functions.)

Packit 1ac44c
Packit 1ac44c

comment

Packit 1ac44c
"string"

Packit 1ac44c
Packit 1ac44c

Use the given string for

Packit 1ac44c
commenting and uncommenting lines. If the string contains a
Packit 1ac44c
vertical bar or pipe character (|), this designates
Packit 1ac44c
bracket-style comments; for example,
Packit 1ac44c
"/*|*/" for CSS files. The characters
Packit 1ac44c
before the pipe are prepended to the line and the characters
Packit 1ac44c
after the pipe are appended at the end of the line. If no
Packit 1ac44c
pipe character is present, the full string is prepended; for
Packit 1ac44c
example, "#" for Python files. If empty
Packit 1ac44c
double quotes are specified, the comment/uncomment function
Packit 1ac44c
is disabled; for example, "" for JSON. The default
Packit 1ac44c
value is "#".

Packit 1ac44c
Packit 1ac44c

color

Packit 1ac44c
fgcolor,bgcolor
Packit 1ac44c
"regex" ...

Packit 1ac44c
Packit 1ac44c

Display all pieces of text that

Packit 1ac44c
match the extended regular expression regex with
Packit 1ac44c
foreground color fgcolor and background color
Packit 1ac44c
bgcolor, at least one of which must be specified.
Packit 1ac44c
Valid colors for foreground and background are: white,
Packit 1ac44c
black, red, blue, green, yellow, magenta, and cyan. You may
Packit 1ac44c
use the prefix "bright" to get a stronger color
Packit 1ac44c
highlight for the foreground. If your terminal supports
Packit 1ac44c
transparency, not specifying a bgcolor tells
Packit 1ac44c
nano to attempt to use a transparent background.

Packit 1ac44c
Packit 1ac44c

icolor

Packit 1ac44c
fgcolor,bgcolor
Packit 1ac44c
"regex" ...

Packit 1ac44c
Packit 1ac44c

Same as above, except that the

Packit 1ac44c
matching is case insensitive.

Packit 1ac44c
Packit 1ac44c

color

Packit 1ac44c
fgcolor,bgcolor
Packit 1ac44c
start="fromrx"
Packit 1ac44c
end="torx"

Packit 1ac44c
Packit 1ac44c

Display all pieces of text

Packit 1ac44c
whose start matches extended regular expression
Packit 1ac44c
fromrx and whose end matches extended regular
Packit 1ac44c
expression torx with foreground color fgcolor
Packit 1ac44c
and background color bgcolor, at least one of which
Packit 1ac44c
must be specified. This means that, after an initial
Packit 1ac44c
instance of fromrx, all text until the first instance
Packit 1ac44c
of torx will be colored. This allows syntax
Packit 1ac44c
highlighting to span multiple lines.

Packit 1ac44c
Packit 1ac44c

icolor

Packit 1ac44c
fgcolor,bgcolor
Packit 1ac44c
start="fromrx"
Packit 1ac44c
end="torx"

Packit 1ac44c
Packit 1ac44c

Same as above, except that the

Packit 1ac44c
matching is case insensitive.

Packit 1ac44c
Packit 1ac44c

include

Packit 1ac44c
"syntaxfile"

Packit 1ac44c
Packit 1ac44c

Read in self-contained color

Packit 1ac44c
syntaxes from syntaxfile. Note that syntaxfile
Packit 1ac44c
may contain only the above commands, from syntax to
Packit 1ac44c
icolor.

Packit 1ac44c
Packit 1ac44c

extendsyntax name

Packit 1ac44c
command [arg ...]

Packit 1ac44c
Packit 1ac44c

Extend the syntax previously

Packit 1ac44c
defined as name with another command. This
Packit 1ac44c
allows adding a new color, icolor,
Packit 1ac44c
header, magic, comment, linter,
Packit 1ac44c
or formatter command to an already defined syntax --
Packit 1ac44c
useful when you want to slightly improve a syntax defined in
Packit 1ac44c
one of the system-installed files (which normally are not
Packit 1ac44c
writable).

Packit 1ac44c
Packit 1ac44c

REBINDING KEYS

Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c

Key bindings

Packit 1ac44c
can be changed via the following three commands:

Packit 1ac44c
Packit 1ac44c

bind key function

Packit 1ac44c
menu

Packit 1ac44c
Packit 1ac44c

Rebinds the key key to a

Packit 1ac44c
new function named function in the context of menu
Packit 1ac44c
menu (or in all menus where the function exists by
Packit 1ac44c
using all).

Packit 1ac44c
Packit 1ac44c

bind key

Packit 1ac44c
"string" menu

Packit 1ac44c
Packit 1ac44c

Makes the given key

Packit 1ac44c
produce the given string in the given menu (or
Packit 1ac44c
in all menus where the key exists when all is used).
Packit 1ac44c
The string can consist of text or commands or a mix
Packit 1ac44c
of them. (To enter a command into the string, precede
Packit 1ac44c
its keystroke with M-V.)

Packit 1ac44c
Packit 1ac44c

unbind key

Packit 1ac44c
menu

Packit 1ac44c
Packit 1ac44c

Unbinds the key key from

Packit 1ac44c
the menu named menu (or from all menus where it
Packit 1ac44c
exists by using all).

Packit 1ac44c
Packit 1ac44c

The format of key should

Packit 1ac44c
be one of:

Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
       cellspacing="0" cellpadding="0">
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c

^

Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c

followed by an alpha character or the word

Packit 1ac44c
"Space". Example: ^C

Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c

M-

Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c

followed by a printable character or the word

Packit 1ac44c
"Space". Example: M-C

Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c

F

Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c

followed by a numeric value from 1 to 16. Example:

Packit 1ac44c
F10

Packit 1ac44c
Packit 1ac44c
Packit 1ac44c

Valid function names to

Packit 1ac44c
be bound are:

Packit 1ac44c
Packit 1ac44c

help

Packit 1ac44c
Packit 1ac44c

Invokes the help viewer.

Packit 1ac44c
Packit 1ac44c

cancel

Packit 1ac44c
Packit 1ac44c

Cancels the current

Packit 1ac44c
command.

Packit 1ac44c
Packit 1ac44c

exit

Packit 1ac44c
Packit 1ac44c

Exits from the program (or from

Packit 1ac44c
the help viewer or the file browser).

Packit 1ac44c
Packit 1ac44c

writeout

Packit 1ac44c
Packit 1ac44c

Writes the current buffer to

Packit 1ac44c
disk, asking for a name.

Packit 1ac44c
Packit 1ac44c

savefile

Packit 1ac44c
Packit 1ac44c

Writes the current file to disk

Packit 1ac44c
without prompting.

Packit 1ac44c
Packit 1ac44c

insert

Packit 1ac44c
Packit 1ac44c

Inserts a file into the current

Packit 1ac44c
buffer (at the current cursor position), or into a new
Packit 1ac44c
buffer when option multibuffer is set.

Packit 1ac44c
Packit 1ac44c

whereis

Packit 1ac44c
Packit 1ac44c

Starts a forward search for

Packit 1ac44c
text in the current buffer -- or for filenames matching a
Packit 1ac44c
string in the current list in the file browser.

Packit 1ac44c
Packit 1ac44c

wherewas

Packit 1ac44c
Packit 1ac44c

Starts a backward search for

Packit 1ac44c
text in the current buffer.

Packit 1ac44c
Packit 1ac44c

searchagain

Packit 1ac44c
Packit 1ac44c

Repeats the last search command

Packit 1ac44c
without prompting.

Packit 1ac44c
Packit 1ac44c

findprevious

Packit 1ac44c
Packit 1ac44c

As searchagain, but

Packit 1ac44c
always in the backward direction.

Packit 1ac44c
Packit 1ac44c

findnext

Packit 1ac44c
Packit 1ac44c

As searchagain, but

Packit 1ac44c
always in the forward direction.

Packit 1ac44c
Packit 1ac44c

replace

Packit 1ac44c
Packit 1ac44c

Interactively replaces text

Packit 1ac44c
within the current buffer.

Packit 1ac44c
Packit 1ac44c

cut

Packit 1ac44c
Packit 1ac44c

Cuts and stores the current

Packit 1ac44c
line (or the marked region).

Packit 1ac44c
Packit 1ac44c

copytext

Packit 1ac44c
Packit 1ac44c

Copies the current line (or the

Packit 1ac44c
marked region) without deleting it.

Packit 1ac44c
Packit 1ac44c

uncut

Packit 1ac44c
Packit 1ac44c

Copies the currently stored

Packit 1ac44c
text into the current buffer at the current cursor
Packit 1ac44c
position.

Packit 1ac44c
Packit 1ac44c

mark

Packit 1ac44c
Packit 1ac44c

Sets the mark at the current

Packit 1ac44c
position, to start selecting text.

Packit 1ac44c
Packit 1ac44c

cutwordleft

Packit 1ac44c
Packit 1ac44c

Cuts from the cursor position

Packit 1ac44c
to the beginning of the preceding word.

Packit 1ac44c
Packit 1ac44c

cutwordright

Packit 1ac44c
Packit 1ac44c

Cuts from the cursor position

Packit 1ac44c
to the beginning of the next word.

Packit 1ac44c
Packit 1ac44c

cutrestoffile

Packit 1ac44c
Packit 1ac44c

Cuts all text from the cursor

Packit 1ac44c
position till the end of the buffer.

Packit 1ac44c
Packit 1ac44c

curpos

Packit 1ac44c
Packit 1ac44c

Shows the current cursor

Packit 1ac44c
position: the line, column, and character positions.

Packit 1ac44c
Packit 1ac44c

wordcount

Packit 1ac44c
Packit 1ac44c

Counts the number of words,

Packit 1ac44c
lines and characters in the current buffer.

Packit 1ac44c
Packit 1ac44c

speller

Packit 1ac44c
Packit 1ac44c

Invokes a spell-checking

Packit 1ac44c
program (or linting program, or formatter program, if the
Packit 1ac44c
active syntax defines such a thing).

Packit 1ac44c
Packit 1ac44c

linter

Packit 1ac44c
Packit 1ac44c

A synonym of speller

Packit 1ac44c
(for when the speller has not been configured).

Packit 1ac44c
Packit 1ac44c

justify

Packit 1ac44c
Packit 1ac44c

Justifies the current

Packit 1ac44c
paragraph. A paragraph is a group of contiguous lines that,
Packit 1ac44c
apart from possibly the first line, all have the same
Packit 1ac44c
indentation. The beginning of a paragraph is detected by
Packit 1ac44c
either this lone line with a differing indentation or by a
Packit 1ac44c
preceding blank line.

Packit 1ac44c
Packit 1ac44c

fulljustify

Packit 1ac44c
Packit 1ac44c

Justifies the entire current

Packit 1ac44c
buffer.

Packit 1ac44c
Packit 1ac44c

indent

Packit 1ac44c
Packit 1ac44c

Indents (shifts to the right)

Packit 1ac44c
the currently marked text.

Packit 1ac44c
Packit 1ac44c

unindent

Packit 1ac44c
Packit 1ac44c

Unindents (shifts to the left)

Packit 1ac44c
the currently marked text.

Packit 1ac44c
Packit 1ac44c

comment

Packit 1ac44c
Packit 1ac44c

Comments or uncomments the

Packit 1ac44c
current line or marked lines, using the comment style
Packit 1ac44c
specified in the active syntax.

Packit 1ac44c
Packit 1ac44c

complete

Packit 1ac44c
Packit 1ac44c

Completes the fragment before

Packit 1ac44c
the cursor to a full word found elsewhere in the current
Packit 1ac44c
buffer.

Packit 1ac44c
Packit 1ac44c

left

Packit 1ac44c
Packit 1ac44c

Goes left one position (in the

Packit 1ac44c
editor or browser).

Packit 1ac44c
Packit 1ac44c

right

Packit 1ac44c
Packit 1ac44c

Goes right one position (in the

Packit 1ac44c
editor or browser).

Packit 1ac44c
Packit 1ac44c

up

Packit 1ac44c
Packit 1ac44c

Goes one line up (in the editor

Packit 1ac44c
or browser).

Packit 1ac44c
Packit 1ac44c

down

Packit 1ac44c
Packit 1ac44c

Goes one line down (in the

Packit 1ac44c
editor or browser).

Packit 1ac44c
Packit 1ac44c

scrollup

Packit 1ac44c
Packit 1ac44c

Scrolls the viewport up one row

Packit 1ac44c
(meaning that the text slides down) while keeping the cursor
Packit 1ac44c
in the same text position, if possible.

Packit 1ac44c
Packit 1ac44c

scrolldown

Packit 1ac44c
Packit 1ac44c

Scrolls the viewport down one

Packit 1ac44c
row (meaning that the text slides up) while keeping the
Packit 1ac44c
cursor in the same text position, if possible.

Packit 1ac44c
Packit 1ac44c

prevword

Packit 1ac44c
Packit 1ac44c

Moves the cursor to the

Packit 1ac44c
beginning of the previous word.

Packit 1ac44c
Packit 1ac44c

nextword

Packit 1ac44c
Packit 1ac44c

Moves the cursor to the

Packit 1ac44c
beginning of the next word.

Packit 1ac44c
Packit 1ac44c

home

Packit 1ac44c
Packit 1ac44c

Moves the cursor to the

Packit 1ac44c
beginning of the current line.

Packit 1ac44c
Packit 1ac44c

end

Packit 1ac44c
Packit 1ac44c

Moves the cursor to the end of

Packit 1ac44c
the current line.

Packit 1ac44c
Packit 1ac44c

beginpara

Packit 1ac44c
Packit 1ac44c

Moves the cursor to the

Packit 1ac44c
beginning of the current paragraph.

Packit 1ac44c
Packit 1ac44c

endpara

Packit 1ac44c
Packit 1ac44c

Moves the cursor to the end of

Packit 1ac44c
the current paragraph.

Packit 1ac44c
Packit 1ac44c

prevblock

Packit 1ac44c
Packit 1ac44c

Moves the cursor to the

Packit 1ac44c
beginning of the current or preceding block of text. (Blocks
Packit 1ac44c
are separated by one or more blank lines.)

Packit 1ac44c
Packit 1ac44c

nextblock

Packit 1ac44c
Packit 1ac44c

Moves the cursor to the

Packit 1ac44c
beginning of the next block of text.

Packit 1ac44c
Packit 1ac44c

pageup

Packit 1ac44c
Packit 1ac44c

Goes up one screenful.

Packit 1ac44c
Packit 1ac44c

pagedown

Packit 1ac44c
Packit 1ac44c

Goes down one screenful.

Packit 1ac44c
Packit 1ac44c

firstline

Packit 1ac44c
Packit 1ac44c

Goes to the first line of the

Packit 1ac44c
file.

Packit 1ac44c
Packit 1ac44c

lastline

Packit 1ac44c
Packit 1ac44c

Goes to the last line of the

Packit 1ac44c
file.

Packit 1ac44c
Packit 1ac44c

gotoline

Packit 1ac44c
Packit 1ac44c

Goes to a specific line (and

Packit 1ac44c
column if specified). Negative numbers count from the end of
Packit 1ac44c
the file (and end of the line).

Packit 1ac44c
Packit 1ac44c

findbracket

Packit 1ac44c
Packit 1ac44c

Moves the cursor to the bracket

Packit 1ac44c
(brace, parenthesis, etc.) that matches (pairs) with the one
Packit 1ac44c
under the cursor.

Packit 1ac44c
Packit 1ac44c

prevbuf

Packit 1ac44c
Packit 1ac44c

Switches to editing/viewing the

Packit 1ac44c
previous buffer when multiple buffers are open.

Packit 1ac44c
Packit 1ac44c

nextbuf

Packit 1ac44c
Packit 1ac44c

Switches to editing/viewing the

Packit 1ac44c
next buffer when multiple buffers are open.

Packit 1ac44c
Packit 1ac44c

verbatim

Packit 1ac44c
Packit 1ac44c

Inserts the next keystroke

Packit 1ac44c
verbatim into the file.

Packit 1ac44c
Packit 1ac44c

tab

Packit 1ac44c
Packit 1ac44c

Inserts a tab at the current

Packit 1ac44c
cursor location.

Packit 1ac44c
Packit 1ac44c

enter

Packit 1ac44c
Packit 1ac44c

Inserts a new line below the

Packit 1ac44c
current one.

Packit 1ac44c
Packit 1ac44c

delete

Packit 1ac44c
Packit 1ac44c

Deletes the character under the

Packit 1ac44c
cursor.

Packit 1ac44c
Packit 1ac44c

backspace

Packit 1ac44c
Packit 1ac44c

Deletes the character before

Packit 1ac44c
the cursor.

Packit 1ac44c
Packit 1ac44c

recordmacro

Packit 1ac44c
Packit 1ac44c

Starts the recording of

Packit 1ac44c
keystrokes -- the keystrokes are stored as a macro. When
Packit 1ac44c
already recording, the recording is stopped.

Packit 1ac44c
Packit 1ac44c

runmacro

Packit 1ac44c
Packit 1ac44c

Replays the keystrokes of the

Packit 1ac44c
last recorded macro.

Packit 1ac44c
Packit 1ac44c

undo

Packit 1ac44c
Packit 1ac44c

Undoes the last performed text

Packit 1ac44c
action (add text, delete text, etc).

Packit 1ac44c
Packit 1ac44c

redo

Packit 1ac44c
Packit 1ac44c

Redoes the last undone action

Packit 1ac44c
(i.e., it undoes an undo).

Packit 1ac44c
Packit 1ac44c

refresh

Packit 1ac44c
Packit 1ac44c

Refreshes the screen.

Packit 1ac44c
Packit 1ac44c

suspend

Packit 1ac44c
Packit 1ac44c

Suspends the editor (if the

Packit 1ac44c
suspending function is enabled, see the
Packit 1ac44c
"suspendenable" entry below).

Packit 1ac44c
Packit 1ac44c

casesens

Packit 1ac44c
Packit 1ac44c

Toggles case sensitivity in

Packit 1ac44c
searching (search/replace menus only).

Packit 1ac44c
Packit 1ac44c

regexp

Packit 1ac44c
Packit 1ac44c

Toggles whether

Packit 1ac44c
searching/replacing is based on literal strings or regular
Packit 1ac44c
expressions.

Packit 1ac44c
Packit 1ac44c

backwards

Packit 1ac44c
Packit 1ac44c

Toggles whether

Packit 1ac44c
searching/replacing goes forward or backward.

Packit 1ac44c
Packit 1ac44c

prevhistory

Packit 1ac44c
Packit 1ac44c

Shows the previous history

Packit 1ac44c
entry in the prompt menus (e.g. search).

Packit 1ac44c
Packit 1ac44c

nexthistory

Packit 1ac44c
Packit 1ac44c

Shows the next history entry in

Packit 1ac44c
the prompt menus (e.g. search).

Packit 1ac44c
Packit 1ac44c

flipreplace

Packit 1ac44c
Packit 1ac44c

Toggles between searching for

Packit 1ac44c
something and replacing something.

Packit 1ac44c
Packit 1ac44c

flipgoto

Packit 1ac44c
Packit 1ac44c

Toggles between searching for

Packit 1ac44c
text and targeting a line number. (The form
Packit 1ac44c
’gototext’ is deprecated.)

Packit 1ac44c
Packit 1ac44c

flipexecute

Packit 1ac44c
Packit 1ac44c

Toggles between inserting a

Packit 1ac44c
file and executing a command.

Packit 1ac44c
Packit 1ac44c

flippipe

Packit 1ac44c
Packit 1ac44c

When executing a command,

Packit 1ac44c
toggles whether the current buffer (or marked region) is
Packit 1ac44c
piped to the command.

Packit 1ac44c
Packit 1ac44c

flipnewbuffer

Packit 1ac44c
Packit 1ac44c

Toggles between inserting into

Packit 1ac44c
the current buffer and into a new empty buffer.

Packit 1ac44c
Packit 1ac44c

dosformat

Packit 1ac44c
Packit 1ac44c

When writing a file, switches

Packit 1ac44c
to writing a DOS format (CR/LF).

Packit 1ac44c
Packit 1ac44c

macformat

Packit 1ac44c
Packit 1ac44c

When writing a file, switches

Packit 1ac44c
to writing a Mac format.

Packit 1ac44c
Packit 1ac44c

append

Packit 1ac44c
Packit 1ac44c

When writing a file, appends to

Packit 1ac44c
the end instead of overwriting.

Packit 1ac44c
Packit 1ac44c

prepend

Packit 1ac44c
Packit 1ac44c

When writing a file,

Packit 1ac44c
’prepends’ (writes at the beginning) instead of
Packit 1ac44c
overwriting.

Packit 1ac44c
Packit 1ac44c

backup

Packit 1ac44c
Packit 1ac44c

When writing a file, creates a

Packit 1ac44c
backup of the current file.

Packit 1ac44c
Packit 1ac44c

discardbuffer

Packit 1ac44c
Packit 1ac44c

When about to write a file,

Packit 1ac44c
discard the current buffer without saving. (This function is
Packit 1ac44c
bound by default only when option
Packit 1ac44c
−−tempfile is in effect.)

Packit 1ac44c
Packit 1ac44c

browser

Packit 1ac44c
Packit 1ac44c

Starts the file browser,

Packit 1ac44c
allowing to select a file from a list.

Packit 1ac44c
Packit 1ac44c

gotodir

Packit 1ac44c
Packit 1ac44c

Goes to a directory to be

Packit 1ac44c
specified, allowing to browse anywhere in the
Packit 1ac44c
filesystem.

Packit 1ac44c
Packit 1ac44c

firstfile

Packit 1ac44c
Packit 1ac44c

Goes to the first file when

Packit 1ac44c
using the file browser (reading or writing files).

Packit 1ac44c
Packit 1ac44c

lastfile

Packit 1ac44c
Packit 1ac44c

Goes to the last file when

Packit 1ac44c
using the file browser (reading or writing files).

Packit 1ac44c
Packit 1ac44c

nohelp

Packit 1ac44c
Packit 1ac44c

Toggles the presence of the

Packit 1ac44c
two-line list of key bindings at the bottom of the
Packit 1ac44c
screen.

Packit 1ac44c
Packit 1ac44c

constantshow

Packit 1ac44c
Packit 1ac44c

Toggles the constant display of

Packit 1ac44c
the current line, column, and character positions. (The form
Packit 1ac44c
’constupdate’ is deprecated.)

Packit 1ac44c
Packit 1ac44c

morespace

Packit 1ac44c
Packit 1ac44c

Toggles the presence of the

Packit 1ac44c
blank line that ’separates’ the title bar from
Packit 1ac44c
the file text.

Packit 1ac44c
Packit 1ac44c

smoothscroll

Packit 1ac44c
Packit 1ac44c

Toggles smooth scrolling (when

Packit 1ac44c
moving around with the arrow keys).

Packit 1ac44c
Packit 1ac44c

softwrap

Packit 1ac44c
Packit 1ac44c

Toggles the displaying of

Packit 1ac44c
overlong lines on multiple screen lines.

Packit 1ac44c
Packit 1ac44c

linenumbers

Packit 1ac44c
Packit 1ac44c

Toggles the display of line

Packit 1ac44c
numbers in front of the text.

Packit 1ac44c
Packit 1ac44c

whitespacedisplay

Packit 1ac44c
Packit 1ac44c

Toggles the showing of

Packit 1ac44c
whitespace.

Packit 1ac44c
Packit 1ac44c

nosyntax

Packit 1ac44c
Packit 1ac44c

Toggles syntax

Packit 1ac44c
highlighting.

Packit 1ac44c
Packit 1ac44c

smarthome

Packit 1ac44c
Packit 1ac44c

Toggles the smartness of the

Packit 1ac44c
Home key.

Packit 1ac44c
Packit 1ac44c

autoindent

Packit 1ac44c
Packit 1ac44c

Toggles whether a newly created

Packit 1ac44c
line will contain the same amount of leading whitespace as
Packit 1ac44c
the preceding line -- or as the next line if the preceding
Packit 1ac44c
line is the beginning of a paragraph.

Packit 1ac44c
Packit 1ac44c

cutfromcursor

Packit 1ac44c
Packit 1ac44c

Toggles whether cutting text

Packit 1ac44c
will cut the whole line or just from the current cursor
Packit 1ac44c
position to the end of the line. (The form
Packit 1ac44c
’cuttoend’ is deprecated.)

Packit 1ac44c
Packit 1ac44c

nowrap

Packit 1ac44c
Packit 1ac44c

Toggles whether long lines will

Packit 1ac44c
be hard-wrapped to the next line.

Packit 1ac44c
Packit 1ac44c

tabstospaces

Packit 1ac44c
Packit 1ac44c

Toggles whether typed tabs will

Packit 1ac44c
be converted to spaces.

Packit 1ac44c
Packit 1ac44c

backupfile

Packit 1ac44c
Packit 1ac44c

Toggles whether a backup will

Packit 1ac44c
be made of the file being edited.

Packit 1ac44c
Packit 1ac44c

multibuffer

Packit 1ac44c
Packit 1ac44c

Toggles whether a file is

Packit 1ac44c
inserted into the current buffer or read into a new
Packit 1ac44c
buffer.

Packit 1ac44c
Packit 1ac44c

mouse

Packit 1ac44c
Packit 1ac44c

Toggles mouse support.

Packit 1ac44c
Packit 1ac44c

noconvert

Packit 1ac44c
Packit 1ac44c

Toggles automatic conversion of

Packit 1ac44c
files from DOS/Mac format.

Packit 1ac44c
Packit 1ac44c

suspendenable

Packit 1ac44c
Packit 1ac44c

Toggles whether the suspend

Packit 1ac44c
sequence (normally ^Z) will suspend the editor window.

Packit 1ac44c
Packit 1ac44c

Valid menu sections

Packit 1ac44c
are:

Packit 1ac44c
Packit 1ac44c

main

Packit 1ac44c
Packit 1ac44c

The main editor window where

Packit 1ac44c
text is entered and edited.

Packit 1ac44c
Packit 1ac44c

search

Packit 1ac44c
Packit 1ac44c

The search menu (AKA

Packit 1ac44c
whereis).

Packit 1ac44c
Packit 1ac44c

replace

Packit 1ac44c
Packit 1ac44c

The ’search to

Packit 1ac44c
replace’ menu.

Packit 1ac44c
Packit 1ac44c

replacewith

Packit 1ac44c
Packit 1ac44c

The ’replace with’

Packit 1ac44c
menu, which comes up after ’search to
Packit 1ac44c
replace’.

Packit 1ac44c
Packit 1ac44c

gotoline

Packit 1ac44c
Packit 1ac44c

The ’goto line (and

Packit 1ac44c
column)’ menu.

Packit 1ac44c
Packit 1ac44c

writeout

Packit 1ac44c
Packit 1ac44c

The ’write file’

Packit 1ac44c
menu.

Packit 1ac44c
Packit 1ac44c

insert

Packit 1ac44c
Packit 1ac44c

The ’insert file’

Packit 1ac44c
menu.

Packit 1ac44c
Packit 1ac44c

extcmd

Packit 1ac44c
Packit 1ac44c

The menu for inserting output

Packit 1ac44c
from an external command, reached from the insert menu.

Packit 1ac44c
Packit 1ac44c

help

Packit 1ac44c
Packit 1ac44c

The help-viewer menu.

Packit 1ac44c
Packit 1ac44c

spell

Packit 1ac44c
Packit 1ac44c

The interactive spell checker

Packit 1ac44c
Yes/no menu.

Packit 1ac44c
Packit 1ac44c

linter

Packit 1ac44c
Packit 1ac44c

The linter menu.

Packit 1ac44c
Packit 1ac44c

browser

Packit 1ac44c
Packit 1ac44c

The file browser for inserting

Packit 1ac44c
or writing a file.

Packit 1ac44c
Packit 1ac44c

whereisfile

Packit 1ac44c
Packit 1ac44c

The ’search for a

Packit 1ac44c
file’ menu in the file browser.

Packit 1ac44c
Packit 1ac44c

gotodir

Packit 1ac44c
Packit 1ac44c

The ’go to

Packit 1ac44c
directory’ menu in the file browser.

Packit 1ac44c
Packit 1ac44c

all

Packit 1ac44c
Packit 1ac44c

A special name that encompasses

Packit 1ac44c
all menus. For bind it means all menus where the
Packit 1ac44c
specified function exists; for unbind it means
Packit 1ac44c
all menus where the specified key exists.

Packit 1ac44c
Packit 1ac44c

FILES

Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c

/etc/nanorc

Packit 1ac44c
Packit 1ac44c

System-wide configuration

Packit 1ac44c
file.

Packit 1ac44c
Packit 1ac44c

~/.nanorc or

Packit 1ac44c
$XDG_CONFIG_HOME/nano/nanorc or
Packit 1ac44c
~/.config/nano/nanorc

Packit 1ac44c
Packit 1ac44c

Per-user configuration

Packit 1ac44c
file.

Packit 1ac44c
Packit 1ac44c

SEE ALSO

Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c

nano(1)

Packit 1ac44c
Packit 1ac44c

AUTHOR

Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c
Packit 1ac44c

Chris

Packit 1ac44c
Allegretta and others (see the files AUTHORS and
Packit 1ac44c
THANKS for details). This manual page was originally
Packit 1ac44c
written by Jordi Mallach for the Debian system (but may be
Packit 1ac44c
used by others).

Packit 1ac44c

Packit 1ac44c
</body>
Packit 1ac44c
</html>