nano.1 4.55 KB
Newer Older
Jordi Mallach's avatar
   
Jordi Mallach committed
1
.\" Hey, EMACS: -*- nroff -*-
2
.\" nano.1 is copyright 1999-2002 by
Jordi Mallach's avatar
   
Jordi Mallach committed
3
4
5
6
7
.\" Chris Allegretta <chrisa@asty.org>
.\"
.\" This is free documentation, see the latest version of the GNU General
.\" Public License for copying conditions. There is NO warranty.
.\"
8
.\" $Id$
9
.TH NANO 1 "January 3, 2002"
Chris Allegretta's avatar
Chris Allegretta committed
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.\" Please adjust this date whenever revising the manpage.
.\"
.SH NAME
nano \- Nano's ANOther editor, an enhanced free Pico Clone
.SH SYNOPSIS
.B nano
.RI [options]\ [+LINE] " file"
.br
.SH DESCRIPTION
This manual page documents briefly the
.B nano
command.
.PP
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
24
.\" \fI<whatever>\fP escape sequences to invoke bold face and italics, 
Chris Allegretta's avatar
Chris Allegretta committed
25
.\" respectively.
Jordi Mallach's avatar
   
Jordi Mallach committed
26
27
28
\fBnano\fP is a small, free and friendly editor which aims to replace
Pico, the default editor included in the non-free Pine package. Rather
than just copying Pico's look and feel,
Chris Allegretta's avatar
Chris Allegretta committed
29
.B nano
Jordi Mallach's avatar
   
Jordi Mallach committed
30
31
also implements some missing (or disabled by default) features in Pico,
such as "search and replace" and "goto line number".
Chris Allegretta's avatar
Chris Allegretta committed
32
33
.SH OPTIONS
.TP
34
35
36
.B \-D (\-\-dos)
Write file in DOS format.
.TP
Chris Allegretta's avatar
Chris Allegretta committed
37
38
39
.B \-F (\-\-multibuffer)
Enable multiple file buffers (if available).
.TP
40
41
42
43
44
.B \-K (\-\-keypad)
Do not use the ncurses keypad() call unless necessary.  Try this flag if 
you find that the arrow keys on the numeric keypad do not work for you 
under nano.
.TP
45
46
.B \-M (\-\-mac)
Write file in Mac format.
Chris Allegretta's avatar
Chris Allegretta committed
47
.TP
48
49
50
.B \-N (\-\-noconvert)
Disable automatic conversion of files from DOS/Mac format.
.TP
Chris Allegretta's avatar
Chris Allegretta committed
51
52
53
.B \-Q [str] (\-\-quotestr=[str])
Set the quoting string for justifying.  The default is "> ".
.TP
54
55
.B \-R (\-\-regexp)
Enable regular expression matching for search strings, as well as
56
\\n subexpression replacement for replace strings, if available.
57
.TP
58
59
60
61
62
63
64
.B \-S (\-\-smooth)
Enable smooth scrolling. Text will scroll line-by-line, instead of the
usual chunk-by-chunk behaviour.
.TP
.B \-T [num] (\-\-tabsize=[num])
Set the size (width) of a tab.
.TP
Chris Allegretta's avatar
Chris Allegretta committed
65
66
67
68
69
70
.B \-V (\-\-version)
Show the current version number and author.
.TP
.B \-c (\-\-const)
Constantly show the cursor position.
.TP
71
72
73
.B \-h (\-\-help)
Display a summary of command line options.
.TP
Chris Allegretta's avatar
Chris Allegretta committed
74
75
76
77
.B \-i (\-\-autoindent)
Indent new lines to the previous line's indentation. Useful when editing
source code.
.TP
78
79
80
.B \-k (\-\-cut)
Enable cut from cursor to end of line with ^K.
.TP
Chris Allegretta's avatar
Chris Allegretta committed
81
82
.B \-l (\-\-nofollow)
If the file being edited is a symbolic link, replace the link with a 
83
a new file, do not follow it.  Good for editing files in /tmp, perhaps?
Chris Allegretta's avatar
Chris Allegretta committed
84
85
86
87
.TP
.B \-m (\-\-mouse)
Enable mouse support (if available for your system).
.TP
88
89
90
.B \-o [dir] (\-\-operatingdir=[dir])
Set operating directory. Makes nano set up something similar to a chroot.
.TP
Chris Allegretta's avatar
Chris Allegretta committed
91
.B \-p (\-\-pico)
92
93
94
Emulate Pico as closely as possible.  This affects both the "shortcut list"
at the bottom of the screen, as well as the display and entry of previous
search and replace strings.
Chris Allegretta's avatar
Chris Allegretta committed
95
.TP
96
.B \-r [#cols] (\-\-fill=[#cols])
97
Wrap lines at column #cols.  By default, this is the width of the screen,
98
99
100
less eight.  If this value is negative, wrapping will occur at #cols from
the right of the screen, allowing it to vary along with the screen width
if the screen is resized.
101
.TP
102
.B \-s [prog] (\-\-speller=[prog])
Chris Allegretta's avatar
Chris Allegretta committed
103
104
105
Enable alternative spell checker command.
.TP
.B \-t (\-\-tempfile)
106
Always save changed buffer without prompting.  Same as Pico -t option.
Chris Allegretta's avatar
Chris Allegretta committed
107
108
109
110
111
112
113
114
115
116
117
118
119
.TP
.B \-v (\-\-view)
View file (read only) mode.
.TP
.B \-w (\-\-nowrap)
Disable wrapping of long lines.
.TP
.B \-x (\-\-nohelp)
Disable help screen at bottom of editor.
.TP
.B \-z (\-\-suspend)
Enable suspend ability.
.TP
120
.B \-a, \-b, \-e, \-f, \-g, \-j
121
122
Ignored, for compatibility with Pico.
.TP
Chris Allegretta's avatar
Chris Allegretta committed
123
124
.B \+LINE
Places cursor at LINE on startup.
Jordi Mallach's avatar
   
Jordi Mallach committed
125
126
.SH NOTES
Nano will try to dump the buffer into an emergency file in some cases.
127
Mainly, this will happen if Nano receives a SIGHUP or runs out of
Jordi Mallach's avatar
   
Jordi Mallach committed
128
129
memory, when it will write the buffer into a file named "nano.save" if the
buffer didn't have a name already, or will add a ".save" suffix to the
130
131
132
current filename. In multibuffer mode, nano will write all the open buffers to
the respective emergency files. Nano will \fBnot\fP write this file if a
previous one exists in the current directory.
Chris Allegretta's avatar
Chris Allegretta committed
133
134
.SH BUGS
Please send any comments or bug reports to
Jordi Mallach's avatar
   
Jordi Mallach committed
135
.br
Chris Allegretta's avatar
Chris Allegretta committed
136
.B nano@nano-editor.org.
Jordi Mallach's avatar
   
Jordi Mallach committed
137
.br
Chris Allegretta's avatar
Chris Allegretta committed
138
The nano mailing list is available from
Jordi Mallach's avatar
   
Jordi Mallach committed
139
.br
140
141
.B nano-devel@gnu.org.
To subscribe, email to nano-devel-request@gnu.org with a
Chris Allegretta's avatar
Chris Allegretta committed
142
143
subject of "subscribe".
.SH HOMEPAGE
Chris Allegretta's avatar
Chris Allegretta committed
144
http://www.nano-editor.org
Chris Allegretta's avatar
Chris Allegretta committed
145
.SH AUTHOR
146
147
Chris Allegretta <chrisa@asty.org>, et al (see AUTHORS and THANKS for
details).
Jordi Mallach's avatar
   
Jordi Mallach committed
148
149
150
This manual page was originally written by Jordi Mallach
<jordi@sindominio.net>, for the Debian GNU/Linux system (but may be
used by others).