-
Notifications
You must be signed in to change notification settings - Fork 4
/
default_config.toml
79 lines (70 loc) · 2.17 KB
/
default_config.toml
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
# This is a sample configuration file for red.
#
# The configuration file is a TOML file. The configuration file is read from
# the following locations:
#
# 1. $XDG_CONFIG_HOME/red/config.toml
# 2. $HOME/.config/red/config.toml
#
# Name of the VSCode theme to use. The theme file should be present in the
# themes directory: $XDG_CONFIG_HOME/red/themes or $HOME/.config/red/themes
theme = "mocha.json"
# The number of lines to scroll when using the mouse wheel
mouse_scroll_lines = 3
# The full path to the log file. If the log file is not present, red will
# create it. If the log file is present, red will append to it.
# This setting is optional, if not present, red will not log anything.
log_file = "/tmp/red.log"
# When this setting is either absent or set to true, red will show
# diagnostics in the log file. When set to false, red will not show
# them.
# show_diagnostics = true
[keys.insert]
Enter = "InsertNewLine"
Backspace = "DeletePreviousChar"
Tab = "InsertTab"
Esc = { EnterMode = "Normal" }
[keys.normal]
"w" = [ "MoveToNextWord" ]
"b" = [ "MoveToPreviousWord" ]
"o" = [ "InsertLineBelowCursor", { EnterMode = "Insert" } ]
"O" = [ "InsertLineAtCursor", { EnterMode = "Insert" } ]
"G" = "MoveToBottom"
"g" = { "g" = "MoveToTop", "d" = "GoToDefinition" }
"u" = "Undo"
"p" = [ "MoveUp", "MoveRight" ]
"Down" = "MoveDown"
"Left" = "MoveLeft"
"Right" = "MoveRight"
"Up" = "MoveUp"
"k" = "MoveUp"
"j" = "MoveDown"
"h" = "MoveLeft"
"l" = "MoveRight"
"0" = "MoveToLineStart"
"Home" = "MoveToLineStart"
"$" = "MoveToLineEnd"
"End" = "MoveToLineEnd"
"Ctrl-b" = "PageUp"
"Ctrl-f" = "PageDown"
"x" = "DeleteCharAtCursorPos"
"d" = { "d" = "DeleteCurrentLine", "b" = "DumpBuffer", "w" = "DeleteWord" }
"z" = { "z" = "MoveLineToViewportCenter" }
"n" = [ "FindNext" ]
"N" = [ "FindPrevious" ]
"a" = [{ EnterMode = "Insert" }, "MoveRight" ]
"i" = { EnterMode = "Insert" }
";" = { EnterMode = "Command" }
":" = { EnterMode = "Command" }
"/" = { EnterMode = "Search" }
" " = { "n" = "NextBuffer", "p" = "PreviousBuffer" }
"Ctrl-p" = "FilePicker"
"Ctrl-z" = "Suspend"
"K" = "Hover"
[keys.command]
Esc = { EnterMode = "Normal" }
[keys.search]
Esc = { EnterMode = "Normal" }
[commands]
"write" = "Save"
"quit" = "Quit"