3 |
- |
1 |
## This is a system-wide configuration file for the nano editor.
|
|
|
2 |
##
|
|
|
3 |
## Each user can save his own configuration to ~/.nanorc
|
|
|
4 |
##
|
|
|
5 |
## See the nanorc(5) man page for details.
|
|
|
6 |
|
|
|
7 |
## Sample initialization file for GNU nano.
|
|
|
8 |
##
|
|
|
9 |
## Please note that you must have configured nano with --enable-nanorc
|
|
|
10 |
## for this file to be read! Also note that this file should not be in
|
|
|
11 |
## DOS or Mac format, and that characters specially interpreted by the
|
|
|
12 |
## shell should not be escaped here.
|
|
|
13 |
##
|
|
|
14 |
## To make sure a value is disabled, use "unset <option>".
|
|
|
15 |
##
|
|
|
16 |
## For the options that take parameters, the default value is given.
|
|
|
17 |
## Other options are unset by default.
|
|
|
18 |
##
|
|
|
19 |
## Quotes inside string parameters don't have to be escaped with
|
|
|
20 |
## backslashes. The last double quote in the string will be treated as
|
|
|
21 |
## its end. For example, for the "brackets" option, ""')>]}" will match
|
|
|
22 |
## ", ', ), >, ], and }.
|
|
|
23 |
|
|
|
24 |
## Use auto-indentation.
|
|
|
25 |
# set autoindent
|
|
|
26 |
|
|
|
27 |
## Backup files to filename~.
|
|
|
28 |
# set backup
|
|
|
29 |
|
|
|
30 |
## The directory to put unique backup files in.
|
|
|
31 |
# set backupdir ""
|
|
|
32 |
|
|
|
33 |
## Do backwards searches by default.
|
|
|
34 |
# set backwards
|
|
|
35 |
|
|
|
36 |
## Use bold text instead of reverse video text.
|
|
|
37 |
# set boldtext
|
|
|
38 |
|
|
|
39 |
## The characters treated as closing brackets when justifying
|
|
|
40 |
## paragraphs. They cannot contain blank characters. Only closing
|
|
|
41 |
## punctuation, optionally followed by closing brackets, can end
|
|
|
42 |
## sentences.
|
|
|
43 |
##
|
|
|
44 |
# set brackets ""')>]}"
|
|
|
45 |
|
|
|
46 |
## Do case sensitive searches by default.
|
|
|
47 |
# set casesensitive
|
|
|
48 |
|
|
|
49 |
## Constantly display the cursor position in the statusbar. Note that
|
|
|
50 |
## this overrides "quickblank".
|
|
|
51 |
# set const
|
|
|
52 |
|
|
|
53 |
## Use cut to end of line by default.
|
|
|
54 |
# set cut
|
|
|
55 |
|
|
|
56 |
## Set the line length for wrapping text and justifying paragraphs.
|
|
|
57 |
## If fill is 0 or less, the line length will be the screen width less
|
|
|
58 |
## this number.
|
|
|
59 |
##
|
|
|
60 |
# set fill -8
|
|
|
61 |
|
|
|
62 |
## Enable ~/.nano_history for saving and reading search/replace strings.
|
|
|
63 |
# set historylog
|
|
|
64 |
|
|
|
65 |
## The opening and closing brackets that can be found by bracket
|
|
|
66 |
## searches. They cannot contain blank characters. The former set must
|
|
|
67 |
## come before the latter set, and both must be in the same order.
|
|
|
68 |
##
|
|
|
69 |
# set matchbrackets "(<[{)>]}"
|
|
|
70 |
|
|
|
71 |
## Use the blank line below the titlebar as extra editing space.
|
|
|
72 |
# set morespace
|
|
|
73 |
|
|
|
74 |
## Enable mouse support, if available for your system. When enabled,
|
|
|
75 |
## mouse clicks can be used to place the cursor, set the mark (with a
|
|
|
76 |
## double click), and execute shortcuts. The mouse will work in the X
|
|
|
77 |
## Window System, and on the console when gpm is running.
|
|
|
78 |
##
|
|
|
79 |
# set mouse
|
|
|
80 |
|
|
|
81 |
## Allow multiple file buffers (inserting a file will put it into a
|
|
|
82 |
## separate buffer). You must have configured with --enable-multibuffer
|
|
|
83 |
## for this to work.
|
|
|
84 |
##
|
|
|
85 |
# set multibuffer
|
|
|
86 |
|
|
|
87 |
## Don't convert files from DOS/Mac format.
|
|
|
88 |
# set noconvert
|
|
|
89 |
|
|
|
90 |
## Don't follow symlinks when writing files.
|
|
|
91 |
# set nofollow
|
|
|
92 |
|
|
|
93 |
## Don't display the helpful shortcut lists at the bottom of the screen.
|
|
|
94 |
# set nohelp
|
|
|
95 |
|
|
|
96 |
## Don't add newlines to the ends of files.
|
|
|
97 |
# set nonewlines
|
|
|
98 |
|
|
|
99 |
## Don't wrap text at all.
|
|
|
100 |
set nowrap
|
|
|
101 |
|
|
|
102 |
## Set operating directory. nano will not read or write files outside
|
|
|
103 |
## this directory and its subdirectories. Also, the current directory
|
|
|
104 |
## is changed to here, so any files are inserted from this dir. A blank
|
|
|
105 |
## string means the operating directory feature is turned off.
|
|
|
106 |
##
|
|
|
107 |
# set operatingdir ""
|
|
|
108 |
|
|
|
109 |
## Preserve the XON and XOFF keys (^Q and ^S).
|
|
|
110 |
# set preserve
|
|
|
111 |
|
|
|
112 |
## The characters treated as closing punctuation when justifying
|
|
|
113 |
## paragraphs. They cannot contain blank characters. Only closing
|
|
|
114 |
## punctuation, optionally followed by closing brackets, can end
|
|
|
115 |
## sentences.
|
|
|
116 |
##
|
|
|
117 |
# set punct "!.?"
|
|
|
118 |
|
|
|
119 |
## Do quick statusbar blanking. Statusbar messages will disappear after
|
|
|
120 |
## 1 keystroke instead of 26. Note that "const" overrides this.
|
|
|
121 |
##
|
|
|
122 |
# set quickblank
|
|
|
123 |
|
|
|
124 |
## The email-quote string, used to justify email-quoted paragraphs.
|
|
|
125 |
## This is an extended regular expression if your system supports them,
|
|
|
126 |
## otherwise a literal string. Default:
|
|
|
127 |
# set quotestr "^([ ]*[#:>\|}])+"
|
|
|
128 |
## if you have extended regular expression support, otherwise:
|
|
|
129 |
# set quotestr "> "
|
|
|
130 |
|
|
|
131 |
## Fix Backspace/Delete confusion problem.
|
|
|
132 |
# set rebinddelete
|
|
|
133 |
|
|
|
134 |
## Fix numeric keypad key confusion problem.
|
|
|
135 |
# set rebindkeypad
|
|
|
136 |
|
|
|
137 |
## Do extended regular expression searches by default.
|
|
|
138 |
# set regexp
|
|
|
139 |
|
|
|
140 |
## Make the Home key smarter. When Home is pressed anywhere but at the
|
|
|
141 |
## very beginning of non-whitespace characters on a line, the cursor
|
|
|
142 |
## will jump to that beginning (either forwards or backwards). If the
|
|
|
143 |
## cursor is already at that position, it will jump to the true
|
|
|
144 |
## beginning of the line.
|
|
|
145 |
# set smarthome
|
|
|
146 |
|
|
|
147 |
## Use smooth scrolling as the default.
|
|
|
148 |
# set smooth
|
|
|
149 |
|
|
|
150 |
## Use this spelling checker instead of the internal one. This option
|
|
|
151 |
## does not properly have a default value.
|
|
|
152 |
##
|
|
|
153 |
# set speller "aspell -x -c"
|
|
|
154 |
|
|
|
155 |
## Allow nano to be suspended.
|
|
|
156 |
# set suspend
|
|
|
157 |
|
|
|
158 |
## Use this tab size instead of the default; it must be greater than 0.
|
|
|
159 |
# set tabsize 8
|
|
|
160 |
|
|
|
161 |
## Convert typed tabs to spaces.
|
|
|
162 |
# set tabstospaces
|
|
|
163 |
|
|
|
164 |
## Save automatically on exit, don't prompt.
|
|
|
165 |
# set tempfile
|
|
|
166 |
|
|
|
167 |
## Disallow file modification. Why would you want this in an rcfile? ;)
|
|
|
168 |
# set view
|
|
|
169 |
|
|
|
170 |
## The two single-column characters used to display the first characters
|
|
|
171 |
## of tabs and spaces. 187 in ISO 8859-1 (0000BB in Unicode) and 183 in
|
|
|
172 |
## ISO-8859-1 (0000B7 in Unicode) seem to be good values for these.
|
|
|
173 |
# set whitespace " "
|
|
|
174 |
|
|
|
175 |
## Detect word boundaries more accurately by treating punctuation
|
|
|
176 |
## characters as parts of words.
|
|
|
177 |
# set wordbounds
|
|
|
178 |
|
|
|
179 |
|
|
|
180 |
## Color setup
|
|
|
181 |
##
|
|
|
182 |
## Format:
|
|
|
183 |
##
|
|
|
184 |
## syntax "short description" ["filename regex" ...]
|
|
|
185 |
##
|
|
|
186 |
## The "none" syntax is reserved; specifying it on the command line is
|
|
|
187 |
## the same as not having a syntax at all. The "default" syntax is
|
|
|
188 |
## special: it takes no filename regexes, and applies to files that
|
|
|
189 |
## don't match any other syntax's filename regexes.
|
|
|
190 |
##
|
|
|
191 |
## color foreground,background "regex" ["regex"...]
|
|
|
192 |
## or
|
|
|
193 |
## icolor foreground,background "regex" ["regex"...]
|
|
|
194 |
##
|
|
|
195 |
## "color" will do case sensitive matches, while "icolor" will do case
|
|
|
196 |
## insensitive matches.
|
|
|
197 |
##
|
|
|
198 |
## Valid colors: white, black, red, blue, green, yellow, magenta, cyan.
|
|
|
199 |
## For foreground colors, you may use the prefix "bright" to get a
|
|
|
200 |
## stronger highlight.
|
|
|
201 |
##
|
|
|
202 |
## To use multi-line regexes, use the start="regex" end="regex"
|
|
|
203 |
## [start="regex" end="regex"...] format.
|
|
|
204 |
##
|
|
|
205 |
## If your system supports transparency, not specifying a background
|
|
|
206 |
## color will use a transparent color. If you don't want this, be sure
|
|
|
207 |
## to set the background color to black or white.
|
|
|
208 |
##
|
|
|
209 |
## If you wish, you may put your syntaxes in separate files. You can
|
|
|
210 |
## make use of such files (which can only include "syntax", "color", and
|
|
|
211 |
## "icolor" commands) as follows:
|
|
|
212 |
##
|
|
|
213 |
## include "/path/to/syntax_file.nanorc"
|
|
|
214 |
##
|
|
|
215 |
## Unless otherwise noted, the name of the syntax file (without the
|
|
|
216 |
## ".nanorc" extension) should be the same as the "short description"
|
|
|
217 |
## name inside that file. These names are kept fairly short to make
|
|
|
218 |
## them easier to remember and faster to type using nano's -Y option.
|
|
|
219 |
##
|
|
|
220 |
## All regexes should be extended regular expressions.
|
|
|
221 |
|
|
|
222 |
|
|
|
223 |
## Nanorc files
|
|
|
224 |
# include "/usr/share/nano/nanorc.nanorc"
|
|
|
225 |
|
|
|
226 |
## C/C++
|
|
|
227 |
# include "/usr/share/nano/c.nanorc"
|
|
|
228 |
|
|
|
229 |
## HTML
|
|
|
230 |
# include "/usr/share/nano/html.nanorc"
|
|
|
231 |
|
|
|
232 |
## TeX
|
|
|
233 |
# include "/usr/share/nano/tex.nanorc"
|
|
|
234 |
|
|
|
235 |
## Quoted emails (under e.g. mutt)
|
|
|
236 |
# include "/usr/share/nano/mutt.nanorc"
|
|
|
237 |
|
|
|
238 |
## Patch files
|
|
|
239 |
# include "/usr/share/nano/patch.nanorc"
|
|
|
240 |
|
|
|
241 |
## Manpages
|
|
|
242 |
# include "/usr/share/nano/man.nanorc"
|
|
|
243 |
|
|
|
244 |
## Groff
|
|
|
245 |
# include "/usr/share/nano/groff.nanorc"
|
|
|
246 |
|
|
|
247 |
## Perl
|
|
|
248 |
# include "/usr/share/nano/perl.nanorc"
|
|
|
249 |
|
|
|
250 |
## Python
|
|
|
251 |
# include "/usr/share/nano/python.nanorc"
|
|
|
252 |
|
|
|
253 |
## Ruby
|
|
|
254 |
# include "/usr/share/nano/ruby.nanorc"
|
|
|
255 |
|
|
|
256 |
## Java
|
|
|
257 |
# include "/usr/share/nano/java.nanorc"
|
|
|
258 |
|
|
|
259 |
## Assembler
|
|
|
260 |
# include "/usr/share/nano/asm.nanorc"
|
|
|
261 |
|
|
|
262 |
## Bourne shell scripts
|
|
|
263 |
# include "/usr/share/nano/sh.nanorc"
|
|
|
264 |
|
|
|
265 |
## POV-Ray
|
|
|
266 |
# include "/usr/share/nano/pov.nanorc"
|