3
3
<!-- Created by GNU Texinfo 5.2, http://www.gnu.org/software/texinfo/ -->
5
<title>nano Command Manual</title>
7
<meta name="description" content="nano Command Manual">
8
<meta name="keywords" content="nano Command Manual">
7
<meta name="description" content="nano">
8
<meta name="keywords" content="nano">
9
9
<meta name="resource-type" content="document">
10
10
<meta name="distribution" content="global">
11
11
<meta name="Generator" content="makeinfo">
66
66
<table class="menu" border="0" cellspacing="0">
67
67
<tr><td align="left" valign="top">• <a href="#Introduction" accesskey="1">Introduction</a>:</td><td> </td><td align="left" valign="top">
69
<tr><td align="left" valign="top">• <a href="#Editor-Basics" accesskey="2">Editor Basics</a>:</td><td> </td><td align="left" valign="top">
71
<tr><td align="left" valign="top">• <a href="#Built_002din-Help" accesskey="3">Built-in Help</a>:</td><td> </td><td align="left" valign="top">
73
<tr><td align="left" valign="top">• <a href="#Feature-Toggles" accesskey="4">Feature Toggles</a>:</td><td> </td><td align="left" valign="top">
75
<tr><td align="left" valign="top">• <a href="#Nanorc-Files" accesskey="5">Nanorc Files</a>:</td><td> </td><td align="left" valign="top">
77
<tr><td align="left" valign="top">• <a href="#The-File-Browser" accesskey="6">The File Browser</a>:</td><td> </td><td align="left" valign="top">
79
<tr><td align="left" valign="top">• <a href="#Pico-Compatibility" accesskey="7">Pico Compatibility</a>:</td><td> </td><td align="left" valign="top">
81
<tr><td align="left" valign="top">• <a href="#Building-and-Configure-Options" accesskey="8">Building and Configure Options</a>:</td><td> </td><td align="left" valign="top">
69
<tr><td align="left" valign="top">• <a href="#Invoking" accesskey="2">Invoking</a>:</td><td> </td><td align="left" valign="top">
71
<tr><td align="left" valign="top">• <a href="#Command_002dline-Options" accesskey="3">Command-line Options</a>:</td><td> </td><td align="left" valign="top">
73
<tr><td align="left" valign="top">• <a href="#Editor-Basics" accesskey="4">Editor Basics</a>:</td><td> </td><td align="left" valign="top">
75
<tr><td align="left" valign="top">• <a href="#Built_002din-Help" accesskey="5">Built-in Help</a>:</td><td> </td><td align="left" valign="top">
77
<tr><td align="left" valign="top">• <a href="#Feature-Toggles" accesskey="6">Feature Toggles</a>:</td><td> </td><td align="left" valign="top">
79
<tr><td align="left" valign="top">• <a href="#Nanorc-Files" accesskey="7">Nanorc Files</a>:</td><td> </td><td align="left" valign="top">
81
<tr><td align="left" valign="top">• <a href="#The-File-Browser" accesskey="8">The File Browser</a>:</td><td> </td><td align="left" valign="top">
83
<tr><td align="left" valign="top">• <a href="#Pico-Compatibility" accesskey="9">Pico Compatibility</a>:</td><td> </td><td align="left" valign="top">
85
<tr><td align="left" valign="top">• <a href="#Building-and-Configure-Options">Building and Configure Options</a>:</td><td> </td><td align="left" valign="top">
98
102
auto-indentation, go-to-line-and-column-number, feature toggles,
99
103
file locking, backup files, and internationalization support.
101
<table class="menu" border="0" cellspacing="0">
102
<tr><td align="left" valign="top">• <a href="#Overview" accesskey="1">Overview</a>:</td><td> </td><td align="left" valign="top">
104
<tr><td align="left" valign="top">• <a href="#Command-Line-Options" accesskey="2">Command Line Options</a>:</td><td> </td><td align="left" valign="top">
109
<a name="Overview"></a>
112
Next: <a href="#Command-Line-Options" accesskey="n" rel="next">Command Line Options</a>, Up: <a href="#Introduction" accesskey="u" rel="up">Introduction</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
114
<a name="Overview-1"></a>
115
<h3 class="section">1.1 Overview</h3>
117
<p>The original goal for <code>nano</code> was a complete bug-for-bug compatible
118
emulation of Pico, but <code>nano</code>’s current goal is to be as compatible
105
<p>The original goal for <code>nano</code> was to be a complete bug-for-bug
106
emulation of Pico. But currently the goal is to be as compatible
119
107
as possible while offering a superset of Pico’s functionality. See
120
108
See <a href="#Pico-Compatibility">Pico Compatibility</a>, for more info.
110
<p>Please report bugs via <a href="https://savannah.gnu.org/bugs/?group=nano">https://savannah.gnu.org/bugs/?group=nano</a>.
113
<a name="Invoking"></a>
116
Next: <a href="#Command_002dline-Options" accesskey="n" rel="next">Command-line Options</a>, Previous: <a href="#Introduction" accesskey="p" rel="prev">Introduction</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
118
<a name="Invoking-1"></a>
119
<h2 class="chapter">2 Invoking</h2>
122
121
<p>The usual way to invoke <code>nano</code> is:
140
139
(making <code>nano</code> remember the cursor position), you will rarely
141
140
need to specify a line number.
143
<p>Please email any bug reports to <a href="mailto:nano@nano-editor.org">nano@nano-editor.org</a>.
144
Or file them at <a href="https://savannah.gnu.org/bugs/?group=nano">https://savannah.gnu.org/bugs/?group=nano</a>.
147
<a name="Command-Line-Options"></a>
143
<a name="Command_002dline-Options"></a>
148
144
<div class="header">
150
Previous: <a href="#Overview" accesskey="p" rel="prev">Overview</a>, Up: <a href="#Introduction" accesskey="u" rel="up">Introduction</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
146
Next: <a href="#Editor-Basics" accesskey="n" rel="next">Editor Basics</a>, Previous: <a href="#Invoking" accesskey="p" rel="prev">Invoking</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
152
<a name="Command-Line-Options-1"></a>
153
<h3 class="section">1.2 Command Line Options</h3>
148
<a name="Command_002dline-Options-1"></a>
149
<h2 class="chapter">3 Command-line Options</h2>
155
151
<p><code>nano</code> takes the following options from the command line:
172
168
<dt><samp>-B</samp></dt>
173
169
<dt><samp>--backup</samp></dt>
174
<dd><p>When saving a file, back up the previous version of it to the current
175
filename suffixed with a ‘<samp>~</samp>’.
170
<dd><p>When saving a file, back up the previous version of it, using the current
171
filename suffixed with a tilde (‘<samp>~</samp>’).
178
174
<dt><samp>-C <var>directory</var></samp></dt>
179
175
<dt><samp>--backupdir=<var>directory</var></samp></dt>
180
<dd><p>Set the directory where <code>nano</code> puts unique backup files if file
176
<dd><p>Make and keep not just one backup file, but make and keep a uniquely
177
numbered one every time a file is saved — when backups are enabled.
178
The uniquely numbered files are stored in the specified directory.
184
181
<dt><samp>-D</samp></dt>
449
447
<a name="Editor-Basics"></a>
450
448
<div class="header">
452
Next: <a href="#Built_002din-Help" accesskey="n" rel="next">Built-in Help</a>, Previous: <a href="#Introduction" accesskey="p" rel="prev">Introduction</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
450
Next: <a href="#Built_002din-Help" accesskey="n" rel="next">Built-in Help</a>, Previous: <a href="#Command_002dline-Options" accesskey="p" rel="prev">Command-line Options</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
454
452
<a name="Editor-Basics-1"></a>
455
<h2 class="chapter">2 Editor Basics</h2>
453
<h2 class="chapter">4 Editor Basics</h2>
457
455
<table class="menu" border="0" cellspacing="0">
458
456
<tr><td align="left" valign="top">• <a href="#Entering-Text" accesskey="1">Entering Text</a>:</td><td> </td><td align="left" valign="top">
643
641
Next: <a href="#Nanorc-Files" accesskey="n" rel="next">Nanorc Files</a>, Previous: <a href="#Built_002din-Help" accesskey="p" rel="prev">Built-in Help</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
645
643
<a name="Feature-Toggles-1"></a>
646
<h2 class="chapter">4 Feature Toggles</h2>
644
<h2 class="chapter">6 Feature Toggles</h2>
648
<p>Toggles allow you to change certain aspects of the editor that would
649
normally be done via command-line options. They are invoked via Meta
650
key sequences. See See <a href="#Special-Functions">Special Functions</a>, for more info. The
651
following global toggles are available:
646
<p>Toggles allow you to change on-the-fly certain aspects of the editor
647
which would normally be specified via command-line options. They are
648
invoked via Meta-key sequences. See See <a href="#Special-Functions">Special Functions</a>, for more info.
649
The following global toggles are available:
653
651
<dl compact="compact">
654
652
<dt><code>Backup Files Toggle (Meta-B)</code></dt>
655
<dd><p>toggles the -B (<code>--backup</code>) command line option.
653
<dd><p>toggles the -B (<code>--backup</code>) command-line option.
658
656
<dt><code>Constant Cursor Position Display Toggle (Meta-C)</code></dt>
659
<dd><p>toggles the -c (<code>--const</code>) command line option.
657
<dd><p>toggles the -c (<code>--const</code>) command-line option.
662
660
<dt><code>Multiple File Buffers Toggle (Meta-F)</code></dt>
663
<dd><p>toggles the -F (<code>--multibuffer</code>) command line option.
661
<dd><p>toggles the -F (<code>--multibuffer</code>) command-line option.
666
664
<dt><code>Smart Home Key Toggle (Meta-H)</code></dt>
667
<dd><p>toggles the -A (<code>--smarthome</code>) command line option.
665
<dd><p>toggles the -A (<code>--smarthome</code>) command-line option.
670
668
<dt><code>Auto Indent Toggle (Meta-I)</code></dt>
671
<dd><p>toggles the -i (<code>--autoindent</code>) command line option.
669
<dd><p>toggles the -i (<code>--autoindent</code>) command-line option.
674
672
<dt><code>Cut To End Toggle (Meta-K)</code></dt>
675
<dd><p>toggles the -k (<code>--cut</code>) command line option.
673
<dd><p>toggles the -k (<code>--cut</code>) command-line option.
678
676
<dt><code>Long Line Wrapping Toggle (Meta-L)</code></dt>
679
<dd><p>toggles the -w (<code>--nowrap</code>) command line option.
677
<dd><p>toggles the -w (<code>--nowrap</code>) command-line option.
682
680
<dt><code>Mouse Support Toggle (Meta-M)</code></dt>
683
<dd><p>toggles the -m (<code>--mouse</code>) command line option.
681
<dd><p>toggles the -m (<code>--mouse</code>) command-line option.
686
684
<dt><code>No Conversion From DOS/Mac Format Toggle (Meta-N)</code></dt>
687
<dd><p>toggles the -N (<code>--noconvert</code>) command line option.
685
<dd><p>toggles the -N (<code>--noconvert</code>) command-line option.
690
688
<dt><code>More Space For Editing Toggle (Meta-O)</code></dt>
691
<dd><p>toggles the -O (<code>--morespace</code>) command line option.
689
<dd><p>toggles the -O (<code>--morespace</code>) command-line option.
694
692
<dt><code>Whitespace Display Toggle (Meta-P)</code></dt>
695
<dd><p>toggles whitespace-display mode.
693
<dd><p>toggles the whitespace-display mode.
696
694
See See <a href="#Whitespace">Whitespace</a>, for more info.
699
697
<dt><code>Tabs to Spaces Toggle (Meta-Q)</code></dt>
700
<dd><p>toggles the -E (<code>--tabstospaces</code>) command line option.
698
<dd><p>toggles the -E (<code>--tabstospaces</code>) command-line option.
703
701
<dt><code>Smooth Scrolling Toggle (Meta-S)</code></dt>
704
<dd><p>toggles the -S (<code>--smooth</code>) command line option.
702
<dd><p>toggles the -S (<code>--smooth</code>) command-line option.
707
705
<dt><code>Expert/No Help Toggle (Meta-X)</code></dt>
708
<dd><p>toggles the -x (<code>--nohelp</code>) command line option.
706
<dd><p>toggles the -x (<code>--nohelp</code>) command-line option.
711
709
<dt><code>Color Syntax Highlighting Toggle (Meta-Y)</code></dt>
742
740
<p>A nanorc file accepts a series of "set" and "unset" commands, which can
743
741
be used to configure <code>nano</code> on startup without using command-line
744
742
options. Additionally, there are some commands to define syntax highlighting
745
and to rebind keys – See <a href="#Syntax-Highlighting">Syntax Highlighting</a>, and See <a href="#Rebinding-Keys">Rebinding Keys</a>.
743
and to rebind keys — See <a href="#Syntax-Highlighting">Syntax Highlighting</a>, and See <a href="#Rebinding-Keys">Rebinding Keys</a>.
746
744
<code>nano</code> will read one command per line.
748
746
<p>Options in nanorc files take precedence over <code>nano</code>’s defaults, and
791
789
<dt><code>set backup</code></dt>
792
<dd><p>When saving a file, back up the previous version of it to the current
790
<dd><p>When saving a file, back up the previous version of it, using the current
793
791
filename suffixed with a tilde (<code>~</code>).
796
794
<dt><code>set backupdir "directory"</code></dt>
797
<dd><p>Set the directory where <code>nano</code> puts unique backup files, if file
795
<dd><p>Make and keep not just one backup file, but make and keep a uniquely
796
numbered one every time a file is saved — when backups are enabled
797
with <code>set backup</code> or <code>--backup</code> or <code>-B</code>.
798
The uniquely numbered files are stored in the specified directory.
801
801
<dt><code>set backwards</code></dt>
1053
1053
<dl compact="compact">
1054
1054
<dt><code>syntax "str" ["fileregex" …]</code></dt>
1055
<dd><p>Defines a syntax named "str" which can be activated via the -Y/–syntax
1055
<dd><p>Defines a syntax named "str" which can be activated via the <code>-Y/--syntax</code>
1056
1056
command-line option, or will be automatically activated if the current
1057
1057
filename matches the extended regular expression "fileregex". All
1058
following "color" and "icolor" statements will apply to this "str"
1059
syntax until a new syntax is defined.
1058
subsequent <code>color</code>, <code>icolor</code>, <code>header</code> and other such
1059
statements will apply to this "str" syntax until a new <code>syntax</code>
1060
command is encountered.
1061
1062
<p>The "none" syntax is reserved; specifying it on the command line is the
1062
1063
same as not having a syntax at all. The "default" syntax is special: it
1063
takes no "fileregex", and applies to files that don’t match any other
1064
takes no "fileregex", and applies to files that don’t match any
1064
1065
syntax’s "fileregex".
1067
1068
<dt><code>linter program [arg …]</code></dt>
1068
<dd><p>For the currently defined syntax, use the given program to invoke the
1069
linter (this overrides the speller function when defined).
1069
<dd><p>Use the given program to do a syntax check on the current file
1070
(this overrides the speller function when defined).
1072
1073
<dt><code>formatter program [arg …]</code></dt>
1073
<dd><p>For the currently defined syntax, use the given program to automatically
1074
reformat text. Useful in certain programming languages (e.g. go).
1074
<dd><p>Use the given program to automatically reformat text.
1075
Useful in certain programming languages (e.g. Go).
1077
1078
<dt><code>header "regex" …</code></dt>
1078
<dd><p>For the currently defined syntax, add one or more regexes which will
1079
<dd><p>Add one or more regexes which will
1079
1080
be compared against the very first line of the file to be edited,
1080
1081
to determine whether this syntax should be used for that file.
1083
1084
<dt><code>magic "regex" …</code></dt>
1084
<dd><p>For the currently defined syntax, add one or more regexes which will be
1085
<dd><p>Add one or more regexes which will be
1085
1086
compared against the result of querying the magic database about the file
1086
1087
to be edited, to determine whether this syntax should be used for that
1087
1088
file. This functionality only works when libmagic is installed on the
1102
1103
<dt><code>icolor fgcolor,bgcolor "regex" …</code></dt>
1103
<dd><p>Same as above, except that the expression matching is case insensitive.
1104
<dd><p>Same as above, except that the text matching is case insensitive.
1106
1107
<dt><code>color fgcolor,bgcolor start="sr" end="er"</code></dt>
1107
<dd><p>Display expressions which start with the extended regular expression
1108
"sr" and end with the extended regular expression "er" with foreground
1108
<dd><p>Display all pieces of text whose start matches extended regular expression
1109
"sr" and whose end matches extended regular expression "er" with foreground
1109
1110
color "fgcolor" and background color "bgcolor", at least one of which
1110
must be specified. This allows syntax highlighting to span multiple
1111
lines. Note that all subsequent instances of "sr" after an initial "sr"
1112
is found will be highlighted until the first instance of "er".
1111
must be specified. This means that, after an initial instance of "sr",
1112
all text will be highlighted until the first instance of "er".
1113
This allows syntax highlighting to span multiple lines.
1115
1116
<dt><code>icolor fgcolor,bgcolor start="sr" end="er"</code></dt>
1116
<dd><p>Same as above, except that the expression matching is case insensitive.
1117
<dd><p>Same as above, except that the text matching is case insensitive.
1119
1120
<dt><code>include "syntaxfile"</code></dt>
1120
1121
<dd><p>Read in self-contained color syntaxes from "syntaxfile". Note that
1121
"syntaxfile" can only contain the above commands, from "syntax" to
1122
"syntaxfile" may contain only the above commands, from <code>syntax</code>
1123
to <code>icolor</code>.
1125
1126
<dt><code>extendsyntax str directive [arg …]</code></dt>
1126
1127
<dd><p>Extend the syntax previously defined as str to include new information.
1127
Allows you to add a new color, icolor, magic, header, or linter directive
1128
to an already defined syntax. Useful when you want to add to definitions
1129
from the system-installed syntax definitions (which are normally not writable).
1128
This allows you to add a new <code>color</code>, <code>icolor</code>, <code>header</code>,
1129
<code>magic</code>, <code>linter</code>, or <code>formatter</code> directive to an already
1130
defined syntax — useful when you want to slightly improve a syntax defined
1131
in one of the system-installed files (which are normally not writable).
1623
1627
Next: <a href="#Building-and-Configure-Options" accesskey="n" rel="next">Building and Configure Options</a>, Previous: <a href="#The-File-Browser" accesskey="p" rel="prev">The File Browser</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
1625
1629
<a name="Pico-Compatibility-1"></a>
1626
<h2 class="chapter">7 Pico Compatibility</h2>
1630
<h2 class="chapter">9 Pico Compatibility</h2>
1628
1632
<p><code>nano</code> attempts to emulate Pico as closely as possible, but there
1629
1633
are certain differences between the editors:
1631
1635
<dl compact="compact">
1636
<dt><code>Interactive Replace</code></dt>
1637
<dd><p>Instead of allowing you to replace either just one occurrence of a search
1638
string or all of them, <code>nano</code>’s replace function is interactive: it
1639
will pause at each found search string and query whether to replace this
1640
instance. You can then choose Yes, or No (skip this one), or All (don’t
1641
ask any more), or Cancel (stop with replacing).
1632
1644
<dt><code>Search and Replace History</code></dt>
1633
<dd><p>As of version 1.1.99pre1 of <code>nano</code>, text entered as search or
1634
replace strings will be stored and can be accessed with the up/down
1635
arrow keys. Previously, <code>nano</code> offered a more consistent, but
1636
incompatible with Pico, method for entering search and replace strings.
1637
In the old method, previous entries would be displayed by default as
1638
editable text in front of the cursor, as opposed to being bracketed and
1639
uneditable as it is in Pico. The old behavior could be made compatible
1640
with Pico via the <code>-p</code> option, but recent versions of Pico use the
1641
<code>-p</code> option to preserve the XON and XOFF sequences within the
1642
editor. Since, with the new method, search and replace strings can
1643
still be edited by simply hitting the up arrow key once, the old method
1644
was removed completely.
1645
<dd><p>When the option <code>-H</code> or <code>--historylog</code> is given (or set in
1646
the .nanorc file), text entered as search or replace strings is stored.
1647
These strings can be accessed with the up/down arrow keys. A retrieved
1648
string can subsequently be edited.
1648
1651
<dt><code>Writing, Appending, or Prepending Selected Text to Files</code></dt>
1649
1652
<dd><p>Text selected using the marking key (^^) can be written out, appended,
1653
1656
<dt><code>Toggles</code></dt>
1654
1657
<dd><p>Many options which alter the functionality of the program can be
1655
1658
"toggled" on or off using Meta key sequences, meaning the program does
1656
not have to be restarted to turn a particular feature of the editor on
1657
or off. Please see the internal help function (^G) for a list of what
1658
functions can be toggled for a particular version of <code>nano</code>. See
1659
See <a href="#Feature-Toggles">Feature Toggles</a>, for more info.
1662
<dt><code>Cursor Position Display</code></dt>
1663
<dd><p>The output of the "Display Cursor Position" in <code>nano</code> displays
1664
the current line position of the cursor, as well as the column and
1665
total character position.
1668
<dt><code>Interactive Replace and Spell Checker</code></dt>
1669
<dd><p>It is worth noting that <code>nano</code>’s replace function is interactive,
1670
i.e. it does not stop after one search string was found and automatically
1671
replaced. The <code>nano</code> implementation will pause at each found
1672
search string and query whether to replace this instance or not. The
1673
internal spell checker operates similarly. Note that there is no way to
1674
force these functions to behave in the Pico fashion. As of version
1675
1.1.99pre1, misspelled words are sorted and trimmed for uniqueness in
1676
the internal spell checker such that the words ’apple’ and ’Apple’ will
1659
not have to be restarted to turn a particular feature on or off.
1660
See the internal help function (^G) for a list of features that
1661
can be toggled. Or see See <a href="#Feature-Toggles">Feature Toggles</a> instead.
1664
<dt><code>Current Cursor Position</code></dt>
1665
<dd><p>The output of the "Display Cursor Position" command (^C) displays
1666
not only the current line and character position of the cursor,
1667
but also (between the two) the current column position.
1670
<dt><code>Spell Checking</code></dt>
1671
<dd><p>In the internal spell checker misspelled words are sorted alphabetically
1672
and trimmed for uniqueness, such that the words ’apple’ and ’Apple’ will
1677
1673
be prompted for correction separately.
1726
1723
<dt><code>--disable-histories</code></dt>
1727
1724
<dd><p>Disable the code for the handling of the history files: the search and
1728
1725
replace strings that were used, and the cursor position at which each
1729
file was closed. This also eliminates the -H and -P command-line
1730
options, which switch on the logging of search/replace strings and
1726
file was closed. This also eliminates the <code>-H</code> and <code>-P</code>
1727
command-line options, which switch on the logging of search/replace
1728
strings and cursor positions.
1734
1731
<dt><code>--disable-justify</code></dt>
1738
1735
<dt><code>--disable-libmagic</code></dt>
1739
1736
<dd><p>Disable the use of the library of magic-number tests (for determining
1740
the file type and thus which syntax to use for colouring – often the
1737
the file type and thus which syntax to use for colouring — often the
1741
1738
tests on filename extension and header line will be enough).
1744
1741
<dt><code>--disable-mouse</code></dt>
1745
<dd><p>Disable all mouse functionality. This also eliminates the -m
1742
<dd><p>Disable all mouse functionality. This also eliminates the <code>-m</code>
1746
1743
command-line option, which enables the mouse functionality.
1749
1746
<dt><code>--disable-multibuffer</code></dt>
1750
1747
<dd><p>Disable support for opening multiple files at a time and switching
1751
between them on the fly. This also eliminates the -F command-line
1752
option, which switches the use of multiple file buffers on.
1748
between them on the fly. This also eliminates the <code>-F</code> command-line
1749
option, which causes a file to be read into a separate buffer by default.
1755
1752
<dt><code>--disable-nanorc</code></dt>
1757
1754
support, you can store custom settings in a system-wide and a per-user
1758
1755
nanorc file rather than having to pass command-line options to get
1759
1756
the desired behavior. See See <a href="#Nanorc-Files">Nanorc Files</a>, for more info.
1760
Disabling this also eliminates the -I and -q command-line options;
1761
the first inhibits the reading of nanorcfiles, and the second
1757
Disabling this also eliminates the <code>-I</code> and <code>-q</code> command-line
1758
options; the first inhibits the reading of nanorcfiles, and the second
1762
1759
suppresses warnings about errors in those files.
1765
1762
<dt><code>--disable-operatingdir</code></dt>
1766
<dd><p>Disable setting the operating directory. This also eliminates the -o
1763
<dd><p>Disable setting the operating directory. This also eliminates the <code>-o</code>
1767
1764
command-line option, which sets the operating directory.
1770
1767
<dt><code>--disable-speller</code></dt>
1771
<dd><p>Disable use of the spell checker. This also eliminates the -s
1768
<dd><p>Disable use of the spell checker. This also eliminates the <code>-s</code>
1772
1769
command-line option, which allows specifying an alternate spell checker.
1785
1782
<dd><p>This option disables all the above. It also disables some of the larger
1786
1783
internals of the editor, like the marking code and the cut-to-end-of-line
1787
1784
code. It also disables the function toggles. By using the enabling
1788
counterpart of the above options together with –enable-tiny, specific
1789
features can be switched back on.
1785
counterpart of the above options together with <code>--enable-tiny</code>,
1786
specific features can be switched back on.
1792
1789
<dt><code>--enable-debug</code></dt>
1828
1825
<div class="contents">
1830
1827
<ul class="no-bullet">
1831
<li><a name="toc-Introduction-1" href="#Introduction">1 Introduction</a>
1832
<ul class="no-bullet">
1833
<li><a name="toc-Overview-1" href="#Overview">1.1 Overview</a></li>
1834
<li><a name="toc-Command-Line-Options-1" href="#Command-Line-Options">1.2 Command Line Options</a></li>
1836
<li><a name="toc-Editor-Basics-1" href="#Editor-Basics">2 Editor Basics</a>
1837
<ul class="no-bullet">
1838
<li><a name="toc-Entering-Text-1" href="#Entering-Text">2.1 Entering Text</a></li>
1839
<li><a name="toc-Special-Functions-1" href="#Special-Functions">2.2 Special Functions</a></li>
1840
<li><a name="toc-The-Cutbuffer-1" href="#The-Cutbuffer">2.3 The Cutbuffer</a></li>
1841
<li><a name="toc-The-Mark-1" href="#The-Mark">2.4 The Mark</a></li>
1842
<li><a name="toc-The-Titlebar-1" href="#The-Titlebar">2.5 The Titlebar</a></li>
1843
<li><a name="toc-The-Statusbar-1" href="#The-Statusbar">2.6 The Statusbar</a></li>
1844
<li><a name="toc-Shortcut-Lists-1" href="#Shortcut-Lists">2.7 Shortcut Lists</a></li>
1845
<li><a name="toc-Using-the-Mouse-1" href="#Using-the-Mouse">2.8 Using the Mouse</a></li>
1847
<li><a name="toc-Built_002din-Help-1" href="#Built_002din-Help">3 Built-in Help</a></li>
1848
<li><a name="toc-Feature-Toggles-1" href="#Feature-Toggles">4 Feature Toggles</a></li>
1849
<li><a name="toc-Nanorc-Files-1" href="#Nanorc-Files">5 Nanorc Files</a>
1850
<ul class="no-bullet">
1851
<li><a name="toc-Settings-1" href="#Settings">5.1 Settings</a></li>
1852
<li><a name="toc-Syntax-Highlighting-1" href="#Syntax-Highlighting">5.2 Syntax Highlighting</a></li>
1853
<li><a name="toc-Rebinding-Keys-1" href="#Rebinding-Keys">5.3 Rebinding Keys</a></li>
1855
<li><a name="toc-The-File-Browser-1" href="#The-File-Browser">6 The File Browser</a></li>
1856
<li><a name="toc-Pico-Compatibility-1" href="#Pico-Compatibility">7 Pico Compatibility</a></li>
1857
<li><a name="toc-Building-and-Configure-Options-1" href="#Building-and-Configure-Options">8 Building and Configure Options</a></li>
1828
<li><a name="toc-Introduction-1" href="#Introduction">1 Introduction</a></li>
1829
<li><a name="toc-Invoking-1" href="#Invoking">2 Invoking</a></li>
1830
<li><a name="toc-Command_002dline-Options-1" href="#Command_002dline-Options">3 Command-line Options</a></li>
1831
<li><a name="toc-Editor-Basics-1" href="#Editor-Basics">4 Editor Basics</a>
1832
<ul class="no-bullet">
1833
<li><a name="toc-Entering-Text-1" href="#Entering-Text">4.1 Entering Text</a></li>
1834
<li><a name="toc-Special-Functions-1" href="#Special-Functions">4.2 Special Functions</a></li>
1835
<li><a name="toc-The-Cutbuffer-1" href="#The-Cutbuffer">4.3 The Cutbuffer</a></li>
1836
<li><a name="toc-The-Mark-1" href="#The-Mark">4.4 The Mark</a></li>
1837
<li><a name="toc-The-Titlebar-1" href="#The-Titlebar">4.5 The Titlebar</a></li>
1838
<li><a name="toc-The-Statusbar-1" href="#The-Statusbar">4.6 The Statusbar</a></li>
1839
<li><a name="toc-Shortcut-Lists-1" href="#Shortcut-Lists">4.7 Shortcut Lists</a></li>
1840
<li><a name="toc-Using-the-Mouse-1" href="#Using-the-Mouse">4.8 Using the Mouse</a></li>
1842
<li><a name="toc-Built_002din-Help-1" href="#Built_002din-Help">5 Built-in Help</a></li>
1843
<li><a name="toc-Feature-Toggles-1" href="#Feature-Toggles">6 Feature Toggles</a></li>
1844
<li><a name="toc-Nanorc-Files-1" href="#Nanorc-Files">7 Nanorc Files</a>
1845
<ul class="no-bullet">
1846
<li><a name="toc-Settings-1" href="#Settings">7.1 Settings</a></li>
1847
<li><a name="toc-Syntax-Highlighting-1" href="#Syntax-Highlighting">7.2 Syntax Highlighting</a></li>
1848
<li><a name="toc-Rebinding-Keys-1" href="#Rebinding-Keys">7.3 Rebinding Keys</a></li>
1850
<li><a name="toc-The-File-Browser-1" href="#The-File-Browser">8 The File Browser</a></li>
1851
<li><a name="toc-Pico-Compatibility-1" href="#Pico-Compatibility">9 Pico Compatibility</a></li>
1852
<li><a name="toc-Building-and-Configure-Options-1" href="#Building-and-Configure-Options">10 Building and Configure Options</a></li>