2003-02-09 04:28:40 +03:00
|
|
|
.\" Hey, EMACS: -*- nroff -*-
|
2014-06-13 19:20:26 +04:00
|
|
|
.\" $Id$
|
|
|
|
.\"
|
2014-05-01 00:18:26 +04:00
|
|
|
.\" Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
|
2015-03-08 18:59:15 +03:00
|
|
|
.\" 2013, 2014, 2015 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
|
|
|
.\"
|
2015-12-23 19:34:44 +03:00
|
|
|
.TH NANORC 5 "version 2.5.1" "December 2015"
|
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
|
2014-05-05 23:32:42 +04:00
|
|
|
The \fInanorc\fP file contains the default settings for \fBnano\fP, a
|
|
|
|
small and friendly editor. The file should be in Unix format, not in
|
|
|
|
DOS or Mac format. During startup, \fBnano\fP will first read the
|
2014-06-18 00:30:59 +04:00
|
|
|
system-wide settings, from \fB/etc/nanorc\fP (the exact path might be
|
|
|
|
different), and then the user-specific settings, from \fB~/.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
|
2014-05-05 23:32:42 +04:00
|
|
|
command-line options. Additionally, there are some commands to define
|
|
|
|
syntax highlighting and to rebind keys -- see the two separate sections
|
|
|
|
on those. \fBnano\fP reads one command per line.
|
2014-08-04 00:57:15 +04:00
|
|
|
.PP
|
2009-12-02 06:36:22 +03:00
|
|
|
Options in \fInanorc\fP files take precedence over nano's defaults, and
|
2014-08-04 00:57:15 +04:00
|
|
|
command-line options override \fInanorc\fP settings. Also, options that
|
|
|
|
do not take an argument are unset by default. So using the \fBunset\fR
|
|
|
|
command is only needed when wanting to override a setting of the system's
|
|
|
|
\fInanorc\fR file in your own \fB~/.nanorc\fR. Options that take an
|
|
|
|
argument cannot be unset.
|
|
|
|
.PP
|
|
|
|
Below, the \fIstring\fR parameters need to be enclosed in double quotes.
|
|
|
|
Quotes inside these string parameters don't have to be escaped with
|
2006-03-12 22:27:32 +03:00
|
|
|
backslashes. The last double quote in the string will be treated as its
|
2014-05-05 23:32:42 +04:00
|
|
|
end. For example, for the \fBbrackets\fP option, "\fB"')>]}\fP" will
|
|
|
|
match \fB"\fP, \fB'\fP, \fB)\fP, \fB>\fP, \fB]\fP, and \fB}\fP.
|
2014-08-04 00:57:15 +04:00
|
|
|
.PP
|
2003-02-09 04:28:40 +03:00
|
|
|
The supported commands and arguments are:
|
|
|
|
|
|
|
|
.TP 3
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set allow_insecure_backup
|
2010-06-21 07:10:10 +04:00
|
|
|
When backing up files, allow the backup to succeed even if its permissions
|
2014-06-20 22:40:34 +04:00
|
|
|
can't be (re)set due to special OS considerations. You should
|
2010-06-21 07:10:10 +04:00
|
|
|
NOT enable this option unless you are sure you need it.
|
|
|
|
.TP
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set autoindent
|
2003-02-09 04:28:40 +03:00
|
|
|
Use auto-indentation.
|
|
|
|
.TP
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set backup
|
2015-06-07 21:45:34 +03:00
|
|
|
When saving a file, create a backup file by adding a tilde (\fB~\fP) to
|
|
|
|
the file's name.
|
2003-02-09 04:28:40 +03:00
|
|
|
.TP
|
2005-06-17 22:00:16 +04:00
|
|
|
.B set backupdir "\fIdirectory\fP"
|
2015-06-07 21:45:34 +03:00
|
|
|
Make and keep not just one backup file, but make and keep a uniquely
|
|
|
|
numbered one every time a file is saved --- when backups are enabled
|
|
|
|
with \fBset backup\fR or \fB\-\-backup\fR or \fB\-B\fR.
|
|
|
|
The uniquely numbered files are stored in the specified \fIdirectory\fR.
|
2005-06-16 22:48:30 +04:00
|
|
|
.TP
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set backwards
|
2005-06-16 22:48:30 +04:00
|
|
|
Do backwards searches by default.
|
|
|
|
.TP
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set boldtext
|
2014-05-05 23:32:42 +04:00
|
|
|
Use bold instead of reverse video for the titlebar, statusbar, key combos,
|
|
|
|
and selected text. This can be overridden for the first three by setting
|
|
|
|
the options \fBtitlecolor\fP, \fBstatuscolor\fP, and \fBkeycolor\fP.
|
2006-04-12 19:27:40 +04:00
|
|
|
.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
|
2014-05-07 00:43:00 +04:00
|
|
|
paragraphs. This may not include blank characters. Only closing
|
|
|
|
punctuation (see \fBpunct\fP), optionally followed by the specified
|
|
|
|
closing brackets, can end sentences. The default value is "\fB"')>]}\fP".
|
2004-02-28 19:24:31 +03:00
|
|
|
.TP
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set casesensitive
|
2014-05-05 23:32:42 +04:00
|
|
|
Do case-sensitive searches by default.
|
2005-06-16 22:48:30 +04:00
|
|
|
.TP
|
2015-07-15 22:40:37 +03:00
|
|
|
.B set constantshow
|
2003-02-15 16:34:03 +03:00
|
|
|
Constantly display the cursor position in the status bar.
|
2015-07-23 20:56:54 +03:00
|
|
|
(The old form of this option, '\fBset const\fR', is deprecated.)
|
2003-02-09 04:28:40 +03:00
|
|
|
.TP
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set cut
|
2014-05-07 00:43:00 +04:00
|
|
|
Use cut-to-end-of-line by default, instead of cutting the whole line.
|
2003-02-09 04:28:40 +03:00
|
|
|
.TP
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set fill \fInumber\fR
|
|
|
|
Hard-wrap lines at column number \fInumber\fR. If \fInumber\fR is 0 or less,
|
|
|
|
the maximum line length will be the screen width less \fInumber\fP columns.
|
|
|
|
The default value is \fB\-8\fR.
|
2003-02-09 04:28:40 +03:00
|
|
|
.TP
|
2014-05-04 14:24:34 +04:00
|
|
|
.B set functioncolor \fIfgcolor\fR,\fIbgcolor\fR
|
|
|
|
Specify the color combination to use for the function descriptions
|
|
|
|
in the two help lines at the bottom of the screen.
|
|
|
|
See \fBset titlecolor\fR for more details.
|
|
|
|
.TP
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set historylog
|
2014-06-16 19:02:58 +04:00
|
|
|
Enable the use of \fB~/.nano/search_history\fP for saving and reading
|
2014-05-05 23:32:42 +04:00
|
|
|
search/replace strings.
|
2003-06-29 06:25:46 +04:00
|
|
|
.TP
|
2014-05-04 14:24:34 +04:00
|
|
|
.B set keycolor \fIfgcolor\fR,\fIbgcolor\fR
|
|
|
|
Specify the color combination to use for the shortcut key combos
|
|
|
|
in the two help lines at the bottom of the screen.
|
|
|
|
See \fBset titlecolor\fR for more details.
|
|
|
|
.TP
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set locking
|
2013-01-01 07:24:39 +04:00
|
|
|
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
|
2014-05-07 00:43:00 +04:00
|
|
|
searches. This may not include blank characters. The opening set must
|
|
|
|
come before the closing set, and the two sets must be in the same order.
|
|
|
|
The default value is "\fB(<[{)>]}\fP".
|
2006-01-07 00:51:10 +03:00
|
|
|
.TP
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set 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
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set 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
|
2014-05-05 23:32:42 +04:00
|
|
|
System, and on the console when gpm is running. Text can still be
|
2014-05-07 00:43:00 +04:00
|
|
|
selected through dragging by holding down the Shift key.
|
2005-01-17 08:24:26 +03:00
|
|
|
.TP
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set multibuffer
|
2015-04-18 19:07:53 +03:00
|
|
|
When reading in a file with ^R, insert it into a new buffer by default.
|
2003-02-09 04:28:40 +03:00
|
|
|
.TP
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set noconvert
|
2003-02-09 04:28:40 +03:00
|
|
|
Don't convert files from DOS/Mac format.
|
|
|
|
.TP
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set nofollow
|
2003-02-09 04:28:40 +03:00
|
|
|
Don't follow symlinks when writing files.
|
|
|
|
.TP
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set nohelp
|
2014-05-05 23:32:42 +04:00
|
|
|
Don't display the two help lines at the bottom of the screen.
|
2003-02-09 04:28:40 +03:00
|
|
|
.TP
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set nonewlines
|
2014-05-05 23:32:42 +04:00
|
|
|
Don't automatically add a newline to the ends of files.
|
2005-11-05 20:35:44 +03:00
|
|
|
.TP
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set nowrap
|
2014-04-24 00:42:55 +04:00
|
|
|
Don't hard-wrap text at all.
|
2003-02-09 04:28:40 +03:00
|
|
|
.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
|
2015-07-15 22:50:55 +03:00
|
|
|
.B set positionlog
|
2014-03-03 22:49:52 +04:00
|
|
|
Save the cursor position of files between editing sessions.
|
2015-07-23 20:56:54 +03:00
|
|
|
(The old form of this option, '\fBset poslog\fR', is deprecated.)
|
2014-03-03 22:49:52 +04:00
|
|
|
.TP
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set 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
|
2014-05-07 00:43:00 +04:00
|
|
|
paragraphs. This may not include blank characters. Only the
|
|
|
|
specfified closing punctuation, optionally followed by closing brackets
|
|
|
|
(see \fBbrackets\fP), can end sentences. The default value is "\fB!.?\fP".
|
2004-05-29 20:38:57 +04:00
|
|
|
.TP
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set 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-08-04 00:57:15 +04:00
|
|
|
.B set quiet
|
2014-03-03 22:49:52 +04:00
|
|
|
\fBnano\fP will not report errors in the \fInanorc\fP file nor ask them
|
2014-06-20 19:56:31 +04:00
|
|
|
to be acknowledged by pressing Enter at startup. If this is used, it
|
2014-03-03 22:49:52 +04:00
|
|
|
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
|
2014-05-05 23:32:42 +04:00
|
|
|
"\fB^([\ \\t]*[#:>\\|}])+\fP" if you have extended regular expression
|
|
|
|
support, and "\fB>\ \fP" otherwise. Note that '\\t' stands for a literal
|
2006-04-05 17:40:56 +04:00
|
|
|
Tab character.
|
2003-02-09 04:28:40 +03:00
|
|
|
.TP
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set 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
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set rebindkeypad
|
2005-08-11 02:51:49 +04:00
|
|
|
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
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set 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
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set 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
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set smooth
|
2003-02-09 04:28:40 +03:00
|
|
|
Use smooth scrolling by default.
|
|
|
|
.TP
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set 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
|
2014-05-04 14:24:34 +04:00
|
|
|
.B set statuscolor \fIfgcolor\fR,\fIbgcolor\fR
|
|
|
|
Specify the color combination to use for the statusbar.
|
|
|
|
See \fBset titlecolor\fR for more details.
|
|
|
|
.TP
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set suspend
|
2006-04-27 22:52:50 +04:00
|
|
|
Allow \fBnano\fP to be suspended.
|
2003-02-09 04:28:40 +03:00
|
|
|
.TP
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set tabsize \fInumber\fR
|
|
|
|
Use a tab size of \fInumber\fR columns. The value of \fInumber\fP must be
|
|
|
|
greater than 0. The default value is \fB8\fR.
|
2003-02-09 04:28:40 +03:00
|
|
|
.TP
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set tabstospaces
|
2005-06-16 03:20:56 +04:00
|
|
|
Convert typed tabs to spaces.
|
|
|
|
.TP
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set tempfile
|
2003-02-09 04:28:40 +03:00
|
|
|
Save automatically on exit, don't prompt.
|
|
|
|
.TP
|
2014-05-04 14:24:34 +04:00
|
|
|
.B set titlecolor \fIfgcolor\fR,\fIbgcolor\fR
|
|
|
|
Specify the color combination to use for the titlebar.
|
|
|
|
Valid color names for foreground and background are:
|
|
|
|
.BR white , \ black , \ red , \ blue , \ green , \ yellow , \ magenta ", and " cyan .
|
|
|
|
And either "\fIfgcolor\fR" or ",\fIbgcolor\fR" may be left out.
|
|
|
|
.TP
|
2015-08-04 21:49:57 +03:00
|
|
|
.B set unix
|
|
|
|
Save a file by default in Unix format. This overrides nano's
|
|
|
|
default behavior of saving a file in the format that it had.
|
|
|
|
(This option has no effect when you also use \fBset noconvert\fR.)
|
|
|
|
.TP
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set 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"
|
2014-05-05 23:32:42 +04:00
|
|
|
Set the two characters used to indicate the presence 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
|
2014-08-04 00:57:15 +04:00
|
|
|
.B set wordbounds
|
2005-08-11 02:51:49 +04:00
|
|
|
Detect word boundaries more accurately by treating punctuation
|
2006-06-26 08:39:31 +04:00
|
|
|
characters as parts of words.
|
2014-05-05 23:32:42 +04:00
|
|
|
|
|
|
|
.SH SYNTAX HIGHLIGHTING
|
|
|
|
Coloring the different syntactic elements of a file
|
2015-03-08 00:30:36 +03:00
|
|
|
is done via regular expressions (see the \fBcolor\fR command below).
|
|
|
|
This is inherently imperfect, because regular expressions are not
|
|
|
|
powerful enough to fully parse a file. Nevertheless, regular
|
|
|
|
expressions can do a lot and are easy to make, so they are a
|
|
|
|
good fit for a small editor like \fBnano\fR.
|
|
|
|
.sp
|
|
|
|
A separate syntax can be defined for each kind of file
|
|
|
|
via the following commands:
|
2005-08-11 02:51:49 +04:00
|
|
|
.TP
|
2014-05-04 15:51:10 +04:00
|
|
|
.BR syntax " ""\fIstr\fR"" [""\fIfileregex\fR"" ...]"
|
2006-04-27 22:52:50 +04:00
|
|
|
Defines a syntax named \fIstr\fP which can be activated via the
|
2014-05-04 15:51:10 +04:00
|
|
|
.BR \-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
|
2015-06-02 17:24:19 +03:00
|
|
|
\fIfileregex\fP. All subsequent \fBcolor\fR, \fBicolor\fR,
|
|
|
|
\fBheader\fR and other such statements will apply to this
|
|
|
|
\fIstr\fP syntax until a new \fBsyntax\fR command is encountered.
|
2005-08-01 09:08:01 +04:00
|
|
|
|
2014-05-04 15:51:10 +04:00
|
|
|
The \fBnone\fP syntax is reserved; specifying it on the command line is
|
|
|
|
the same as not having a syntax at all. The \fBdefault\fP syntax is
|
2005-08-01 09:08:01 +04:00
|
|
|
special: it takes no \fIfileregex\fP, and applies to files that don't
|
2015-06-02 17:24:19 +03:00
|
|
|
match any syntax's \fIfileregex\fP.
|
2003-02-13 07:01:49 +03:00
|
|
|
.TP
|
2014-05-04 15:51:10 +04:00
|
|
|
.BI linter " program " \fR[ "arg " \fR...]
|
2015-06-02 17:24:19 +03:00
|
|
|
Use the given \fIprogram\fR to run a syntax check on the current file
|
|
|
|
(this overrides the speller function when defined).
|
2014-02-24 14:18:15 +04:00
|
|
|
.TP
|
2015-01-03 10:24:17 +03:00
|
|
|
.BI formatter " program " \fR[ "arg " \fR...]
|
2015-06-02 17:24:19 +03:00
|
|
|
Use the given \fIprogram\fR to automatically reformat text.
|
|
|
|
Useful in certain programming languages (e.g. Go).
|
2015-01-03 10:24:17 +03:00
|
|
|
.TP
|
2015-03-08 01:11:56 +03:00
|
|
|
.BR header " \fIregex\fR " ...
|
2015-06-02 17:24:19 +03:00
|
|
|
Add one or more regexes which will
|
2014-05-05 23:32:42 +04:00
|
|
|
be compared against the very first line of the file to be edited,
|
|
|
|
to determine whether this syntax should be used for that file.
|
|
|
|
.TP
|
2015-03-08 01:11:56 +03:00
|
|
|
.BR magic " \fIregex\fR " ...
|
2015-06-02 17:24:19 +03:00
|
|
|
Add one or more regexes which
|
2014-05-05 23:32:42 +04:00
|
|
|
will be compared against the result of querying the \fBmagic\fP
|
|
|
|
database about the file to be edited, to determine whether this
|
|
|
|
syntax should be used for that file. This
|
2014-06-20 22:40:34 +04:00
|
|
|
functionality only works when \fBlibmagic\fP is installed on the
|
2011-02-13 07:23:10 +03:00
|
|
|
system and will be silently ignored otherwise.
|
|
|
|
.TP
|
2014-05-04 15:51:10 +04:00
|
|
|
.B color \fIfgcolor\fR,\fIbgcolor\fR """\fIregex\fR""" ...
|
2015-06-02 17:24:19 +03:00
|
|
|
Display all pieces of text that match
|
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
|
2014-05-04 14:24:34 +04:00
|
|
|
must be specified. Valid colors for foreground and background
|
2006-04-05 17:40:56 +04:00
|
|
|
are: white, black, red, blue, green, yellow, magenta, and cyan. You may
|
2014-05-04 14:24:34 +04:00
|
|
|
use the prefix "bright" to get a stronger color highlight for the
|
2006-04-05 17:40:56 +04:00
|
|
|
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
|
2014-05-04 15:51:10 +04:00
|
|
|
.B icolor \fIfgcolor\fR,\fIbgcolor\fR """\fIregex\fR""" ...
|
2015-06-02 17:24:19 +03:00
|
|
|
Same as above, except that the text matching is case insensitive.
|
2005-06-27 07:07:10 +04:00
|
|
|
.TP
|
2014-05-04 15:51:10 +04:00
|
|
|
.BR color " \fIfgcolor\fR,\fIbgcolor\fR " start= """\fIsr\fR"" " end= """\fIer\fR""
|
2015-06-02 17:24:19 +03:00
|
|
|
Display all pieces of text whose start matches extended regular expression
|
|
|
|
\fIsr\fP and whose end matches extended regular expression \fIer\fP with
|
2006-04-05 17:40:56 +04:00
|
|
|
foreground color \fIfgcolor\fP and background color \fIbgcolor\fP,
|
2015-06-02 17:24:19 +03:00
|
|
|
at least one of which must be specified. This means that, after an
|
|
|
|
initial instance of \fIsr\fP, all text will be highlighted until the
|
|
|
|
first instance of \fIer\fP. This allows syntax highlighting to span
|
|
|
|
multiple lines.
|
2005-06-27 07:07:10 +04:00
|
|
|
.TP
|
2014-05-04 15:51:10 +04:00
|
|
|
.BR icolor " \fIfgcolor\fR,\fIbgcolor\fR " start= """\fIsr\fR"" " end= """\fIer\fR""
|
2015-06-02 17:24:19 +03:00
|
|
|
Same as above, except that the text matching is case insensitive.
|
2006-04-13 06:43:54 +04:00
|
|
|
.TP
|
2014-05-04 15:51:10 +04:00
|
|
|
.BR include " ""\fIsyntaxfile\fR"""
|
2006-04-13 06:43:54 +04:00
|
|
|
Read in self-contained color syntaxes from \fIsyntaxfile\fP. Note that
|
2015-06-02 17:24:19 +03:00
|
|
|
\fIsyntaxfile\fP may contain only the above commands, from \fBsyntax\fP
|
2014-05-05 23:32:42 +04:00
|
|
|
to \fBicolor\fP.
|
2014-03-02 09:27:56 +04:00
|
|
|
.TP
|
2014-05-04 15:51:10 +04:00
|
|
|
.BI extendsyntax " str directive " \fR[ "arg " \fR...]
|
2014-03-02 09:27:56 +04:00
|
|
|
Extend the syntax previously defined as \fIstr\fP to include
|
2015-06-02 17:24:19 +03:00
|
|
|
new information. This allows you to add a new \fBcolor\fP, \fBicolor\fP,
|
|
|
|
\fBheader\fP, \fBmagic\fP, \fBlinter\fP, or \fBformatter\fP directive
|
|
|
|
to an already defined syntax -- useful when you want to
|
|
|
|
slightly improve a syntax defined in one of the system-installed
|
|
|
|
files (which are normally not writable)
|
2014-05-05 23:32:42 +04:00
|
|
|
.SH REBINDING KEYS
|
2015-08-04 22:51:02 +03:00
|
|
|
Key bindings can be changed via the following two commands:
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
2014-05-04 15:51:10 +04:00
|
|
|
.BI bind " key function menu"
|
2008-03-05 10:35:01 +03:00
|
|
|
Rebinds the key \fIkey\fP to a new function named \fIfunction\fP in the
|
2014-06-27 20:27:52 +04:00
|
|
|
context of menu \fImenu\fP (or in all menus where the function exists
|
|
|
|
by using \fBall\fP).
|
2014-02-27 23:57:52 +04:00
|
|
|
.TP
|
2014-05-04 15:51:10 +04:00
|
|
|
.BI unbind " key menu"
|
2014-06-20 22:40:34 +04:00
|
|
|
Unbinds the key \fIkey\fP from the menu named \fImenu\fP (or from all
|
2014-02-27 23:57:52 +04:00
|
|
|
menus where it exists by using \fBall\fP).
|
|
|
|
|
|
|
|
.TP
|
|
|
|
The format of \fIkey\fP should be one of:
|
2015-03-08 00:48:15 +03:00
|
|
|
.RS 3
|
|
|
|
.TP 3
|
2014-06-20 22:40:34 +04:00
|
|
|
.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
|
2014-06-20 22:40:34 +04:00
|
|
|
.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
|
2014-06-20 22:40:34 +04: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
|
2015-03-08 00:48:15 +03:00
|
|
|
.RE
|
2014-02-27 23:57:52 +04:00
|
|
|
|
2015-03-08 00:48:15 +03:00
|
|
|
.TP
|
2015-08-04 22:51:02 +03:00
|
|
|
Valid \fIfunction\fP names to be bound are:
|
2015-03-08 00:48:15 +03:00
|
|
|
.RS 3
|
2014-02-27 23:57:52 +04:00
|
|
|
.TP 2
|
2008-03-05 10:35:01 +03:00
|
|
|
.B help
|
2014-05-10 01:02:14 +04:00
|
|
|
Invokes the help viewer.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B cancel
|
2014-05-10 01:02:14 +04:00
|
|
|
Cancels the current command.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B exit
|
2014-05-10 01:02:14 +04:00
|
|
|
Exits from the program (or from the help viewer or the file browser).
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B writeout
|
2015-07-25 22:25:50 +03:00
|
|
|
Writes the current buffer to disk, asking for a name.
|
|
|
|
.TP
|
|
|
|
.B savefile
|
|
|
|
Writes the current file to disk without prompting or warning.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B insert
|
2015-04-18 19:07:53 +03:00
|
|
|
Inserts a file into the current buffer (at the current cursor position),
|
|
|
|
or into a new buffer when option \fBmultibuffer\fR is set.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B whereis
|
2014-06-24 00:03:25 +04:00
|
|
|
Searches for text in the current buffer -- or for filenames matching
|
|
|
|
a string in the current list in the file browser.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B searchagain
|
2015-07-26 12:23:24 +03:00
|
|
|
Repeats the last search command without prompting.
|
|
|
|
.TP
|
|
|
|
.B findprevious
|
|
|
|
As \fBsearchagain\fR, but always in the backward direction.
|
|
|
|
.TP
|
|
|
|
.B findnext
|
|
|
|
As \fBsearchagain\fR, but always in the forward direction.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
2014-04-27 00:16:17 +04:00
|
|
|
.B replace
|
2014-05-10 01:02:14 +04:00
|
|
|
Interactively replaces text within the current buffer.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B cut
|
2014-05-10 01:02:14 +04:00
|
|
|
Cuts and stores the current line (or the marked region).
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
2014-04-27 00:16:17 +04:00
|
|
|
.B copytext
|
2014-05-10 01:02:14 +04:00
|
|
|
Copies the current line (or the marked region) without deleting it.
|
2014-04-27 00:16:17 +04:00
|
|
|
.TP
|
2008-03-05 10:35:01 +03:00
|
|
|
.B uncut
|
2014-05-10 01:02:14 +04:00
|
|
|
Copies the currently stored text into the current buffer at the
|
|
|
|
current cursor position.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
2014-04-27 00:16:17 +04:00
|
|
|
.B mark
|
2014-05-10 01:02:14 +04:00
|
|
|
Sets the mark at the current position, to start selecting text.
|
2014-04-27 00:16:17 +04:00
|
|
|
.TP
|
2015-07-31 14:52:26 +03:00
|
|
|
.B cutwordleft
|
|
|
|
Cuts from the cursor position to the beginning of the preceding word.
|
|
|
|
.TP
|
|
|
|
.B cutwordright
|
|
|
|
Cuts from the cursor position to the beginning of the next word.
|
|
|
|
.TP
|
2014-05-05 23:54:34 +04:00
|
|
|
.B cutrestoffile
|
2014-05-10 01:02:14 +04:00
|
|
|
Cuts all text from the cursor position till the end of the buffer.
|
2014-05-05 23:54:34 +04:00
|
|
|
.TP
|
2008-03-05 10:35:01 +03:00
|
|
|
.B curpos
|
2014-05-10 01:02:14 +04:00
|
|
|
Shows the current cursor position: the line, column, and character positions.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
2014-04-27 00:16:17 +04:00
|
|
|
.B wordcount
|
2014-05-10 01:02:14 +04:00
|
|
|
Counts the number of words, lines and characters in the current buffer.
|
2014-04-27 00:16:17 +04:00
|
|
|
.TP
|
2014-04-26 23:33:11 +04:00
|
|
|
.B speller
|
2014-05-10 01:02:14 +04:00
|
|
|
Invokes a spell-checking program (or a linting program, if the current
|
2014-04-26 23:33:11 +04:00
|
|
|
syntax highlighting defines one).
|
|
|
|
.TP
|
2015-03-25 22:33:00 +03:00
|
|
|
.B linter
|
|
|
|
A synonym of \fBspeller\fR (for when the speller has not been configured).
|
|
|
|
.TP
|
2014-04-27 00:16:17 +04:00
|
|
|
.B justify
|
2014-05-10 01:02:14 +04:00
|
|
|
Justifies the current paragraph.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
2014-04-27 00:16:17 +04:00
|
|
|
.B fulljustify
|
2014-05-10 01:02:14 +04:00
|
|
|
Justifies the entire current buffer.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B indent
|
2014-05-10 01:02:14 +04:00
|
|
|
Indents (shifts to the right) the currently marked text.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B unindent
|
2014-05-10 01:02:14 +04:00
|
|
|
Unindents (shifts to the left) the currently marked text.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
2014-04-27 00:16:17 +04:00
|
|
|
.B left
|
2014-05-10 01:02:14 +04:00
|
|
|
Goes left one position (in the editor or browser).
|
2014-04-27 00:16:17 +04:00
|
|
|
.TP
|
|
|
|
.B right
|
2014-05-10 01:02:14 +04:00
|
|
|
Goes right one position (in the editor or browser).
|
2014-04-27 00:16:17 +04:00
|
|
|
.TP
|
|
|
|
.B up
|
2014-05-10 01:02:14 +04:00
|
|
|
Goes one line up (in the editor or browser).
|
2014-04-27 00:16:17 +04:00
|
|
|
.TP
|
|
|
|
.B down
|
2014-05-10 01:02:14 +04:00
|
|
|
Goes one line down (in the editor or browser).
|
2014-04-27 00:16:17 +04:00
|
|
|
.TP
|
|
|
|
.B scrollup
|
2014-05-10 01:02:14 +04:00
|
|
|
Scrolls up one line of text from the current position.
|
2014-04-27 00:16:17 +04:00
|
|
|
.TP
|
|
|
|
.B scrolldown
|
2014-05-10 01:02:14 +04:00
|
|
|
Scrolls down one line of text from the current position.
|
2014-04-27 00:16:17 +04:00
|
|
|
.TP
|
2008-03-05 10:35:01 +03:00
|
|
|
.B prevword
|
2014-05-10 01:02:14 +04:00
|
|
|
Moves the cursor to the beginning of the previous word.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
2015-08-04 22:51:02 +03:00
|
|
|
.B nextword
|
|
|
|
Moves the cursor to the beginning of the next word.
|
|
|
|
.TP
|
2008-03-05 10:35:01 +03:00
|
|
|
.B home
|
2014-05-10 01:02:14 +04:00
|
|
|
Moves the cursor to the beginning of the current line.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B end
|
2014-05-10 01:02:14 +04:00
|
|
|
Moves the cursor to the end of the current line.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B beginpara
|
2014-05-10 01:02:14 +04:00
|
|
|
Moves the cursor to the beginning of the current paragraph.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B endpara
|
2014-05-10 01:02:14 +04:00
|
|
|
Moves the cursor to the end of the current paragraph.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
2014-04-27 00:16:17 +04:00
|
|
|
.B prevpage
|
2014-05-10 01:02:14 +04:00
|
|
|
Goes up one screenful.
|
2014-04-27 00:16:17 +04:00
|
|
|
.TP
|
|
|
|
.B nextpage
|
2014-05-10 01:02:14 +04:00
|
|
|
Goes down one screenful.
|
2014-04-27 00:16:17 +04:00
|
|
|
.TP
|
|
|
|
.B firstline
|
2014-05-10 01:02:14 +04:00
|
|
|
Goes to the first line of the file.
|
2014-04-27 00:16:17 +04:00
|
|
|
.TP
|
|
|
|
.B lastline
|
2014-05-10 01:02:14 +04:00
|
|
|
Goes to the last line of the file.
|
2014-04-27 00:16:17 +04:00
|
|
|
.TP
|
|
|
|
.B gotoline
|
2014-05-10 01:02:14 +04:00
|
|
|
Goes to a specific line (and column if specified).
|
2014-04-27 00:16:17 +04:00
|
|
|
.TP
|
2014-06-24 00:03:25 +04:00
|
|
|
.B gototext
|
2014-07-24 20:11:20 +04:00
|
|
|
Switches from targeting a line number to searching for text.
|
2014-06-24 00:03:25 +04:00
|
|
|
.TP
|
2008-03-05 10:35:01 +03:00
|
|
|
.B findbracket
|
2014-05-10 01:02:14 +04:00
|
|
|
Moves the cursor to the bracket (brace, parenthesis, etc.) that matches
|
2014-05-05 23:32:42 +04:00
|
|
|
(pairs) with the one under the cursor.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B prevbuf
|
2015-04-18 19:07:53 +03:00
|
|
|
Switches to editing/viewing the previous buffer when multiple buffers are open.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B nextbuf
|
2015-04-18 19:07:53 +03:00
|
|
|
Switches to editing/viewing the next buffer when multiple buffers are open.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B verbatim
|
2014-05-10 01:02:14 +04:00
|
|
|
Inserts the next character verbatim into the file.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B tab
|
2014-05-10 01:02:14 +04:00
|
|
|
Inserts a tab at the current cursor location.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B enter
|
2014-05-10 01:02:14 +04:00
|
|
|
Inserts a new line below the current one.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B delete
|
2014-05-10 01:02:14 +04:00
|
|
|
Deletes the character under the cursor.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
2014-05-04 16:20:51 +04:00
|
|
|
.B backspace
|
2014-05-10 01:02:14 +04:00
|
|
|
Deletes the character before the cursor.
|
2014-05-04 16:20:51 +04:00
|
|
|
.TP
|
2008-07-13 05:36:06 +04:00
|
|
|
.B undo
|
2014-05-10 01:02:14 +04:00
|
|
|
Undoes the last performed text action (add text, delete text, etc).
|
2008-07-13 05:36:06 +04:00
|
|
|
.TP
|
2008-10-14 20:46:58 +04:00
|
|
|
.B redo
|
2014-05-10 01:02:14 +04:00
|
|
|
Redoes the last undone action (i.e., it undoes an undo).
|
2008-07-13 05:36:06 +04:00
|
|
|
.TP
|
2014-04-27 00:16:17 +04:00
|
|
|
.B refresh
|
2014-05-10 01:02:14 +04:00
|
|
|
Refreshes the screen.
|
2014-04-27 00:16:17 +04:00
|
|
|
.TP
|
2008-03-14 07:08:51 +03:00
|
|
|
.B suspend
|
2014-05-10 01:02:14 +04:00
|
|
|
Suspends the editor (if the suspending function is enabled, see the
|
2008-03-17 02:57:14 +03:00
|
|
|
"suspendenable" entry below).
|
2008-03-14 07:08:51 +03:00
|
|
|
.TP
|
2008-03-05 10:35:01 +03:00
|
|
|
.B casesens
|
2014-05-10 01:02:14 +04:00
|
|
|
Toggles case sensitivity in searching (search/replace menus only).
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B regexp
|
2014-05-10 01:02:14 +04:00
|
|
|
Toggles whether searching/replacing is based on literal strings or regular expressions.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
2014-05-04 16:20:51 +04:00
|
|
|
.B backwards
|
2014-05-10 01:02:14 +04:00
|
|
|
Toggles whether searching/replacing goes forward or backward.
|
2014-05-04 16:20:51 +04:00
|
|
|
.TP
|
2008-03-05 10:35:01 +03:00
|
|
|
.B prevhistory
|
2014-05-10 01:02:14 +04:00
|
|
|
Shows the previous history entry in the prompt menus (e.g. search).
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B nexthistory
|
2014-05-10 01:02:14 +04:00
|
|
|
Shows the next history entry in the prompt menus (e.g. search).
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
2014-06-23 22:30:35 +04:00
|
|
|
.B flipreplace
|
|
|
|
Toggles between searching for something and replacing something.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
2014-06-04 23:15:16 +04:00
|
|
|
.B flipexecute
|
|
|
|
Toggles between inserting a file and executing a command.
|
|
|
|
.TP
|
2014-06-24 00:03:25 +04:00
|
|
|
.B flipnewbuffer
|
|
|
|
Toggles between inserting into the current buffer and into a new
|
|
|
|
empty buffer.
|
|
|
|
.TP
|
|
|
|
.B tofiles
|
|
|
|
Starts the file browser, allowing to select a file from a list.
|
|
|
|
.TP
|
|
|
|
.B gotodir
|
|
|
|
Goes to a directory to be specified, allowing to browse anywhere
|
|
|
|
in the filesystem.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B dosformat
|
2014-05-10 01:02:14 +04:00
|
|
|
When writing a file, switches to writing a DOS format (CR/LF).
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B macformat
|
2014-05-10 01:02:14 +04:00
|
|
|
When writing a file, switches to writing a Mac format.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B append
|
2014-05-10 01:02:14 +04:00
|
|
|
When writing a file, appends to the end instead of overwriting.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B prepend
|
2014-05-10 01:02:14 +04:00
|
|
|
When writing a file, 'prepends' (writes at the beginning) instead of overwriting.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B backup
|
2014-05-10 01:02:14 +04:00
|
|
|
When writing a file, creates a backup of the current file.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
2015-12-23 19:34:44 +03:00
|
|
|
.B discardbuffer
|
|
|
|
When about to write a file, discard the current buffer without saving.
|
|
|
|
(This function is bound by default only when option \fB\-\-tempfile\fR
|
|
|
|
is in effect.)
|
|
|
|
.TP
|
2008-03-05 10:35:01 +03:00
|
|
|
.B firstfile
|
2014-05-10 01:02:14 +04:00
|
|
|
Goes to the first file when using the file browser (reading or writing files).
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B lastfile
|
2014-05-10 01:02:14 +04:00
|
|
|
Goes to the last file when using the file browser (reading or writing files).
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B nohelp
|
2014-05-10 01:02:14 +04:00
|
|
|
Toggles the presence of 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-05-10 01:02:14 +04:00
|
|
|
Toggles the constant display of the current line, column, and character positions.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B morespace
|
2014-05-10 01:02:14 +04:00
|
|
|
Toggles the presence of the blank line which 'separates' the titlebar from the file text.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B smoothscroll
|
2014-05-10 01:02:14 +04:00
|
|
|
Toggles smooth scrolling (when moving around with the arrow keys).
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
2014-05-10 00:33:49 +04:00
|
|
|
.B softwrap
|
2014-05-10 01:02:14 +04:00
|
|
|
Toggles the displaying of overlong lines on multiple screen lines.
|
2014-05-10 00:33:49 +04:00
|
|
|
.TP
|
2008-03-17 02:57:14 +03:00
|
|
|
.B whitespacedisplay
|
2014-05-10 01:02:14 +04:00
|
|
|
Toggles the showing of whitespace.
|
2014-03-20 01:30:08 +04:00
|
|
|
.TP
|
|
|
|
.B nosyntax
|
2014-05-10 01:02:14 +04:00
|
|
|
Toggles syntax highlighting.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B smarthome
|
2014-05-10 01:02:14 +04:00
|
|
|
Toggles the smartness of the Home key.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B autoindent
|
2014-05-10 01:02:14 +04:00
|
|
|
Toggles whether new lines will contain the same amount of whitespace as the preceding line.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B cuttoend
|
2014-05-10 01:02:14 +04:00
|
|
|
Toggles whether cutting text will cut the whole line or just from the current cursor
|
2008-03-17 02:57:14 +03:00
|
|
|
position to the end of the line.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B nowrap
|
2014-05-10 01:02:14 +04:00
|
|
|
Toggles whether long lines will be hard-wrapped to the next line.
|
2014-03-20 01:30:08 +04:00
|
|
|
.TP
|
|
|
|
.B tabstospaces
|
2014-05-10 01:02:14 +04:00
|
|
|
Toggles whether typed tabs will be converted to spaces.
|
2014-03-20 01:30:08 +04:00
|
|
|
.TP
|
|
|
|
.B backupfile
|
2015-06-07 21:45:34 +03:00
|
|
|
Toggles whether a backup will be made of the file being edited.
|
2014-03-20 01:30:08 +04:00
|
|
|
.TP
|
|
|
|
.B multibuffer
|
2015-04-18 19:07:53 +03:00
|
|
|
Toggles whether a file is inserted into the current buffer
|
|
|
|
or read into a new buffer.
|
2014-03-20 01:30:08 +04:00
|
|
|
.TP
|
|
|
|
.B mouse
|
2014-05-10 01:02:14 +04:00
|
|
|
Toggles mouse support.
|
2014-03-20 01:30:08 +04:00
|
|
|
.TP
|
|
|
|
.B noconvert
|
2014-05-10 01:02:14 +04:00
|
|
|
Toggles 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
|
2014-05-10 01:02:14 +04:00
|
|
|
Toggles whether the suspend sequence (normally ^Z) will suspend the editor window.
|
2015-03-08 00:51:01 +03:00
|
|
|
.RE
|
2008-03-05 10:35:01 +03:00
|
|
|
|
2015-03-08 00:51:01 +03:00
|
|
|
.TP
|
2014-02-27 23:57:52 +04:00
|
|
|
Valid \fImenu\fP sections are:
|
2015-03-08 00:51:01 +03:00
|
|
|
.RS 3
|
2014-02-27 23:57:52 +04:00
|
|
|
.TP 2
|
2008-03-05 10:35:01 +03:00
|
|
|
.B main
|
2014-05-10 01:02:14 +04:00
|
|
|
The main editor window where text is entered and edited.
|
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
|
2014-05-05 23:32:42 +04:00
|
|
|
The help-viewer 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
|
2014-05-10 01:02:14 +04:00
|
|
|
.B linter
|
|
|
|
The linter menu.
|
|
|
|
.TP
|
2008-03-05 10:35:01 +03:00
|
|
|
.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
|
2014-05-05 23:32:42 +04:00
|
|
|
The 'go to directory' menu in the file browser.
|
2008-03-05 10:35:01 +03:00
|
|
|
.TP
|
|
|
|
.B all
|
2014-06-27 20:27:52 +04:00
|
|
|
A special name that encompasses all menus.
|
|
|
|
For \fBbind\fR it means all menus where the specified \fIfunction\fR exists;
|
|
|
|
for \fBunbind\fR it means all menus where the specified \fIkey\fR exists.
|
2015-03-08 00:48:15 +03:00
|
|
|
.RE
|
2009-11-21 19:26:59 +03:00
|
|
|
|
2003-06-11 20:38:35 +04:00
|
|
|
.SH FILES
|
|
|
|
.TP
|
2014-06-18 00:30:59 +04:00
|
|
|
.B /etc/nanorc
|
|
|
|
System-wide configuration file.
|
2003-06-11 20:38:35 +04:00
|
|
|
.TP
|
2014-05-05 23:32:42 +04:00
|
|
|
.B ~/.nanorc
|
2014-06-18 00:30:59 +04:00
|
|
|
Per-user configuration file.
|
2003-02-09 04:28:40 +03:00
|
|
|
.SH SEE ALSO
|
|
|
|
.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).
|