forked from dotphiles/dotphiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnanorc
205 lines (164 loc) · 5.95 KB
/
nanorc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
#
# dotphiles : https://github.com/dotphiles/dotphiles
#
# Basic nano configuration
#
# Authors:
# Ben O'Hara <[email protected]>
#
# Use auto-indentation.
set autoindent
# Create backup files in "filename~"
set backup
# Set the directory where nano puts unique backup files if file backups
# are enabled.
set backupdir "~/.backup/nano"
# Do backwards searches by default.
unset backwards
# Use bold text instead of reverse video text.
set boldtext
# Set the characters treated as closing brackets when justifying paragraphs.
# They cannot contain blank characters. Only closing punctuation, optionally
# followed by closing brackets, can end sentences. The default value
# is ""')>]}".
set brackets string ""')>]}"
# Do case sensitive searches by default.
set casesensitive
# Constantly display the cursor position in the status bar.
set const
# Use cut to end of line by default.
unset cut
# Wrap lines at column number n. If n is 0 or less, the maximum line length
# will be the screen width less n columns. The default value is -8.
set fill "-8"
# Enable ~/.nano_history for saving and reading search/replace strings.
set historylog
# Set the opening and closing brackets that can be found by bracket searches.
# They cannot contain blank characters. The former set must come before the
# latter set, and both must be in the same order. The default value
# is "(<[{)>]}".
set matchbrackets string "(<[{)>]}"
# Use of the blank line below the titlebar as extra editing space.
unset morespace
# Enable mouse support, so that mouse clicks can be used to place the cursor,
# set the mark (with a double click), or execute shortcuts.
unset mouse
# Allow inserting files into their own buffers.
set multibuffer
# Don't convert files from DOS/Mac format.
set noconvert
# Don't follow symlinks when writing files.
unset nofollow
# Don't display the help lists at the bottom of the screen.
set nohelp
# Don't add newlines to the ends of files.
unset nonewlines
# Don't wrap text at all.
unset nowrap
# nano will only read and write files inside directory and its subdirectories.
# Also, the current directory is changed to here, so files are inserted from
# this diractory. By default, the operating directory feature is turned off.
# set operatingdir "directory"
# Preserve the XON and XOFF keys (^Q and ^S).
unset preserve
# Set the characters treated as closing punctuation when justifying paragraphs.
# They cannot contain blank characters. Only closing punctuation, optionally
# followed by closing brackets, can end sentences. The default value is "!.?".
set punct "!.?"
# Do quick statusbar blanking. Statusbar messages will disappear after 1
# keystroke instead of 25.
unset quickblank
# The email-quote string, used to justify email-quoted paragraphs. This is an
# extended regular expression if your system supports them, otherwise a
# literal string. The default value is "^([ \t]*[#:>\|}])+" if you have
# extended regular expression support, or "> " otherwise. Note that '\t'
# stands for a literal Tab character.
set quotestr "^([ \\t]*[#:>\\|}])+"
# 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.
unset rebinddelete
# 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.
unset rebindkeypad
# Do extended regular expression searches by default.
unset regexp
# 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.
set smarthome
# Use smooth scrolling by default.
set smooth
# Use spelling checker spellprog instead of the built-in one, which calls
# "spell".
set speller "aspell"
# Allow nano to be suspended.
set suspend
# Use a tab size of "n" columns. The value of n must be greater than 0. The
# default value is 8.
set tabsize "4"
# Convert typed tabs to spaces
set tabstospaces
# Save automatically on exit, don't prompt.
unset tempfile
# Disallow file modification.
unset view
# Set the two characters used to display the first characters of tabs and
# spaces. They must be single-column characters.
# set whitespace "string"
# Detect word boundaries more accurately by treating punctuation characters
# as part of a word.
unset wordbounds
## Syntax Highlighting
#apacheconf
#include "~/.nano.d/syntax-highlighting/apacheconf.nanorc"
#asm
#include "~/.nano.d/syntax-highlighting/asm.nanorc"
#c
#include "~/.nano.d/syntax-highlighting/c.nanorc"
#conf
#include "~/.nano.d/syntax-highlighting/conf.nanorc"
#css
include "~/.nano.d/syntax-highlighting/css.nanorc"
#cython
#include "~/.nano.d/syntax-highlighting/cython.nanorc"
#fortran
#include "~/.nano.d/syntax-highlighting/fortran.nanorc"
#gentoo
#include "~/.nano.d/syntax-highlighting/gentoo.nanorc"
#groff
#include "~/.nano.d/syntax-highlighting/groff.nanorc"
#html
include "~/.nano.d/syntax-highlighting/html.nanorc"
#java
include "~/.nano.d/syntax-highlighting/java.nanorc"
#lua
#include "~/.nano.d/syntax-highlighting/lua.nanorc"
#man
include "~/.nano.d/syntax-highlighting/man.nanorc"
#mutt
#include "~/.nano.d/syntax-highlighting/mutt.nanorc"
#nanorc
include "~/.nano.d/syntax-highlighting/nanorc.nanorc"
#patch
include "~/.nano.d/syntax-highlighting/patch.nanorc"
#perl
include "~/.nano.d/syntax-highlighting/perl.nanorc"
#php
include "~/.nano.d/syntax-highlighting/php.nanorc"
#pov
#include "~/.nano.d/syntax-highlighting/pov.nanorc"
#python
include "~/.nano.d/syntax-highlighting/python.nanorc"
#reST
#include "~/.nano.d/syntax-highlighting/reST.nanorc"
#ruby
include "~/.nano.d/syntax-highlighting/ruby.nanorc"
#sh
include "~/.nano.d/syntax-highlighting/sh.nanorc"
#tex
include "~/.nano.d/syntax-highlighting/tex.nanorc"
#xml
include "~/.nano.d/syntax-highlighting/xml.nanorc"