-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_nanorc
67 lines (50 loc) · 1.82 KB
/
dot_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
# For further information, see https://www.nano-editor.org/
# Indent new lines to the previous line's indentation.
set autoindent
# Backup files to `filename` + `~`.
set backup
# Constantly show the cursor position in the status bar.
set constantshow
# Log search and replace strings to `~/.nano_history`.
set historylog
# Show line numbers in front of the text.
set linenumbers
# 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.
set mouse
# Keep original end-of-line formatting.
set noconvert
# Preserve the XON `^Q` and XOFF `^S` keys for the terminal.
set preserve
# 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
# Enable smooth scrolling. Text will scroll line-by-line, instead of
# the usual chunk-by-chunk behavior.
set smooth
# Allow nano to be suspended with `^Z`.
set suspend
# Use this tab size (greater than 0) instead of the default (8).
set tabsize 4
# Convert typed tabs to spaces.
set tabstospaces
# Detect word boundaries more accurately by treating punctuation
# characters as part of a word.
set wordbounds
# Let `Backspace` and `Delete` keys erase a marked region.
set zap
# Change interface colors.
# See https://www.reddit.com/r/linux/comments/b724zx/
set errorcolor brightwhite,red
set functioncolor green
set keycolor cyan
set numbercolor cyan
set selectedcolor brightwhite,magenta
set statuscolor cyan
set stripecolor ,yellow
set titlecolor brightwhite,blue
# Consider syntax highlighting files, see: https://github.com/scopatz/nanorc