nano.1.html 6.31 KB
Newer Older
Chris Allegretta's avatar
Chris Allegretta committed
1
2
3
4
5
Content-type: text/html

<HTML><HEAD><TITLE>Manpage of NANO</TITLE>
</HEAD><BODY>
<H1>NANO</H1>
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
6
Section: User Commands  (1)<BR>Updated: July 30, 2002<BR><A HREF="#index">Index</A>
Chris Allegretta's avatar
Chris Allegretta committed
7
8
9
10
11
12
13
14
15
16
17
18
19
<A HREF="http://localhost/cgi-bin/man/man2html">Return to Main Contents</A><HR>



<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>

nano - Nano's ANOther editor, an enhanced free Pico Clone
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>

<B>nano</B>

Chris Allegretta's avatar
Chris Allegretta committed
20
<I>[+LINE]&nbsp;[options]&nbsp;[file]</I>
Chris Allegretta's avatar
Chris Allegretta committed
21
22
23
24
25
26

<BR>

<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>

Chris Allegretta's avatar
Chris Allegretta committed
27
This manual page documents briefly the <B>nano</B> command.
Chris Allegretta's avatar
Chris Allegretta committed
28
29
30
31
32
<P>




33
34
<B>nano</B> is a small, free and friendly editor which aims to replace
Pico, the default editor included in the non-free Pine package. Rather
Chris Allegretta's avatar
Chris Allegretta committed
35
36
37
than just copying Pico's look and feel, <B>nano</B> also implements some
missing (or disabled by default) features in Pico, such as &quot;search and
replace&quot; and &quot;go to line number&quot;.
Chris Allegretta's avatar
Chris Allegretta committed
38
39
40
41
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>

<DL COMPACT>
Chris Allegretta's avatar
Chris Allegretta committed
42
43
44
45
<DT><B>+</B><I>LINE</I>

<DD>
Places cursor at <I>LINE</I> on startup.
46
47
48
49
50
<DT><B>-B (--backup)</B>

<DD>
When saving a file, back up the previous version of it to the current
filename suffixed with a ~.
Chris Allegretta's avatar
Chris Allegretta committed
51
52
53
54
<DT><B>-D (--dos)</B>

<DD>
Write file in DOS format.
Chris Allegretta's avatar
Chris Allegretta committed
55
56
57
<DT><B>-F (--multibuffer)</B>

<DD>
58
Enable multiple file buffers, if available.
Chris Allegretta's avatar
Chris Allegretta committed
59
60
61
62
<DT><B>-I (--ignorercfiles)</B>

<DD>
Don't look at /etc/nanorc or ~/.nanorc, if nanorc support is available.
63
64
65
66
67
68
<DT><B>-K (--keypad)</B>

<DD>
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.
Chris Allegretta's avatar
Chris Allegretta committed
69
<DT><B>-M (--mac)</B>
Chris Allegretta's avatar
Chris Allegretta committed
70
71

<DD>
Chris Allegretta's avatar
Chris Allegretta committed
72
Write file in Mac format.
Chris Allegretta's avatar
Chris Allegretta committed
73
74
75
76
<DT><B>-N (--noconvert)</B>

<DD>
Disable automatic conversion of files from DOS/Mac format.
Chris Allegretta's avatar
Chris Allegretta committed
77
<DT><B>-Q </B><I>[str]</I> (--quotestr=<I>[str]</I>)
Chris Allegretta's avatar
Chris Allegretta committed
78
79

<DD>
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
80
81
82
Set the quoting string for justifying.  The default is
&quot;^([ \t]*[|&gt;:}#])+&quot; if regular expression support is available, or
&quot;&gt; &quot; otherwise.
83
84
85
86
87
<DT><B>-R (--regexp)</B>

<DD>
Enable regular expression matching for search strings, as well as
\n subexpression replacement for replace strings, if available.
Chris Allegretta's avatar
Chris Allegretta committed
88
<DT><B>-S (--smooth)</B>
Chris Allegretta's avatar
Chris Allegretta committed
89
90

<DD>
Chris Allegretta's avatar
Chris Allegretta committed
91
Enable smooth scrolling. Text will scroll line-by-line, instead of the
Chris Allegretta's avatar
Chris Allegretta committed
92
93
usual chunk-by-chunk behavior.
<DT><B>-T </B><I>[num]</I> (--tabsize=<I>[num]</I>)
Chris Allegretta's avatar
Chris Allegretta committed
94
95

<DD>
Chris Allegretta's avatar
Chris Allegretta committed
96
97
98
99
100
Set the size (width) of a tab.
<DT><B>-V (--version)</B>

<DD>
Show the current version number and author.
Chris Allegretta's avatar
Chris Allegretta committed
101
<DT><B>-Y </B><I>[str]</I> (--syntax=<I>[str]</I>)
Chris Allegretta's avatar
Chris Allegretta committed
102
103

<DD>
104
105
Specify a specific syntax highlighting from the .nanorc to use, if
available.
Chris Allegretta's avatar
Chris Allegretta committed
106
107
108
109
<DT><B>-c (--const)</B>

<DD>
Constantly show the cursor position.
Chris Allegretta's avatar
Chris Allegretta committed
110
111
112
113
<DT><B>-h (--help)</B>

<DD>
Display a summary of command line options.
Chris Allegretta's avatar
Chris Allegretta committed
114
115
116
117
118
<DT><B>-i (--autoindent)</B>

<DD>
Indent new lines to the previous line's indentation. Useful when editing
source code.
Chris Allegretta's avatar
Chris Allegretta committed
119
120
121
122
<DT><B>-k (--cut)</B>

<DD>
Enable cut from cursor to end of line with ^K.
Chris Allegretta's avatar
Chris Allegretta committed
123
124
125
<DT><B>-l (--nofollow)</B>

<DD>
Chris Allegretta's avatar
Chris Allegretta committed
126
If the file being edited is a symbolic link, replace the link with
127
a new file, do not follow it.  Good for editing files in /tmp, perhaps?
Chris Allegretta's avatar
Chris Allegretta committed
128
129
130
131
<DT><B>-m (--mouse)</B>

<DD>
Enable mouse support (if available for your system).
Chris Allegretta's avatar
Chris Allegretta committed
132
<DT><B>-o </B><I>[dir]</I> (--operatingdir=<I>[dir]</I>)
Chris Allegretta's avatar
Chris Allegretta committed
133
134

<DD>
135
136
Set operating directory. Makes nano set up something similar to a
chroot.
Chris Allegretta's avatar
Chris Allegretta committed
137
138
139
<DT><B>-p (--pico)</B>

<DD>
140
141
142
Emulate Pico as closely as possible.  This affects both the &quot;shortcut
list&quot; 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
143
<DT><B>-r </B><I>[#cols]</I> (--fill=<I>[#cols]</I>)
Chris Allegretta's avatar
Chris Allegretta committed
144
145

<DD>
146
147
148
149
Wrap lines at column #cols.  By default, this is the width of the
screen, 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.
Chris Allegretta's avatar
Chris Allegretta committed
150
<DT><B>-s </B><I>[prog]</I> (--speller=<I>[prog]</I>)
Chris Allegretta's avatar
Chris Allegretta committed
151
152
153
154
155
156

<DD>
Enable alternative spell checker command.
<DT><B>-t (--tempfile)</B>

<DD>
157
Always save changed buffer without prompting.  Same as Pico -t option.
Chris Allegretta's avatar
Chris Allegretta committed
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<DT><B>-v (--view)</B>

<DD>
View file (read only) mode.
<DT><B>-w (--nowrap)</B>

<DD>
Disable wrapping of long lines.
<DT><B>-x (--nohelp)</B>

<DD>
Disable help screen at bottom of editor.
<DT><B>-z (--suspend)</B>

<DD>
Enable suspend ability.
Chris Allegretta's avatar
Chris Allegretta committed
174
<DT><B>-a, -b, -e, -f, -g, -j</B>
175
176
177

<DD>
Ignored, for compatibility with Pico.
Chris Allegretta's avatar
Chris Allegretta committed
178
179
</DL>
<A NAME="lbAF">&nbsp;</A>
180
181
<H2>NOTES</H2>

Chris Allegretta's avatar
Chris Allegretta committed
182
183
184
185
186
187
188
189
190
<B>nano</B> will try to dump the buffer into an emergency file in some
cases.  Mainly, this will happen if <B>nano</B> receives a SIGHUP or runs
out of memory, when it will write the buffer into a file named
&quot;nano.save&quot; if the buffer didn't have a name already, or will add a
&quot;.save&quot; suffix to the current filename. If an emergency file with that
name already exists in the current directory, &quot;.save&quot; and a number (e.g.
&quot;.save.1&quot;) will be suffixed to the current filename in order to make it
unique. In multibuffer mode, <B>nano</B> will write all the open buffers
to the respective emergency files.
191
<A NAME="lbAG">&nbsp;</A>
Chris Allegretta's avatar
Chris Allegretta committed
192
193
194
<H2>BUGS</H2>

Please send any comments or bug reports to
195
196
<BR>

Chris Allegretta's avatar
Chris Allegretta committed
197
<B><A HREF="mailto:nano@nano-editor.org">nano@nano-editor.org</A>.</B>
Chris Allegretta's avatar
Chris Allegretta committed
198

199
200
<BR>

Chris Allegretta's avatar
Chris Allegretta committed
201
The <B>nano</B> mailing list is available from
202
203
<BR>

204
<B><A HREF="mailto:nano-devel@gnu.org">nano-devel@gnu.org</A>.</B>
Chris Allegretta's avatar
Chris Allegretta committed
205

206
To subscribe, email to <A HREF="mailto:nano-devel-request@gnu.org">nano-devel-request@gnu.org</A> with a
Chris Allegretta's avatar
Chris Allegretta committed
207
subject of &quot;subscribe&quot;.
208
<A NAME="lbAH">&nbsp;</A>
Chris Allegretta's avatar
Chris Allegretta committed
209
210
<H2>HOMEPAGE</H2>

Chris Allegretta's avatar
Chris Allegretta committed
211
<A HREF="http://www.nano-editor.org">http://www.nano-editor.org</A>
212
<A NAME="lbAI">&nbsp;</A>
Chris Allegretta's avatar
Chris Allegretta committed
213
214
<H2>AUTHOR</H2>

Chris Allegretta's avatar
Chris Allegretta committed
215
216
Chris Allegretta &lt;<A HREF="mailto:chrisa@asty.org">chrisa@asty.org</A>&gt;, et al (see AUTHORS and THANKS for
details).
217
This manual page was originally written by Jordi Mallach
Chris Allegretta's avatar
Chris Allegretta committed
218
&lt;<A HREF="mailto:jordi@sindominio.net">jordi@sindominio.net</A>&gt;, for the Debian GNU system (but may be
219
used by others).
Chris Allegretta's avatar
Chris Allegretta committed
220
221
222
223
224
225
226
227
228
<P>

<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT><A HREF="#lbAB">NAME</A><DD>
<DT><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT><A HREF="#lbAE">OPTIONS</A><DD>
229
230
231
232
<DT><A HREF="#lbAF">NOTES</A><DD>
<DT><A HREF="#lbAG">BUGS</A><DD>
<DT><A HREF="#lbAH">HOMEPAGE</A><DD>
<DT><A HREF="#lbAI">AUTHOR</A><DD>
Chris Allegretta's avatar
Chris Allegretta committed
233
234
235
236
237
</DL>
<HR>
This document was created by
<A HREF="http://localhost/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
238
Time: 21:12:05 GMT, July 30, 2002
Chris Allegretta's avatar
Chris Allegretta committed
239
240
</BODY>
</HTML>