-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdefault_config.toml
141 lines (123 loc) · 3.45 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
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
# 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 = false
[keys.insert]
Enter = "InsertNewLine"
Backspace = "DeletePreviousChar"
Tab = "InsertTab"
Esc = { EnterMode = "Normal" }
[keys.normal]
"w" = [ "MoveToNextWord" ]
"b" = [ "MoveToPreviousWord" ]
"o" = [ { EnterMode = "Insert" }, "InsertLineBelowCursor" ]
"O" = [ { EnterMode = "Insert" }, "InsertLineAtCursor" ]
"G" = "MoveToBottom"
"g" = { "g" = "MoveToTop", "d" = "GoToDefinition" }
"u" = "Undo"
"Down" = "MoveDown"
"Left" = "MoveLeft"
"Right" = "MoveRight"
"Up" = "MoveUp"
"k" = "MoveUp"
"j" = "MoveDown"
"h" = "MoveLeft"
"l" = "MoveRight"
"0" = "MoveToLineStart"
"Home" = "MoveToLineStart"
"$" = "MoveToLineEnd"
"End" = "MoveToLineEnd"
"H" = "MoveToFirstLineChar"
"L" = "MoveToLastLineChar"
"Ctrl-b" = "PageUp"
"Ctrl-f" = "PageDown"
"Ctrl-o" = "JumpBack"
"Tab" = "JumpForward"
"x" = "DeleteCharAtCursorPos"
"z" = { "z" = "MoveLineToViewportCenter" }
"n" = [ "FindNext" ]
"N" = [ "FindPrevious" ]
"a" = [ { EnterMode = "Insert" }, "MoveRight" ]
"A" = [ { EnterMode = "Insert" }, "MoveToLineEnd" ]
"i" = { EnterMode = "Insert" }
"I" = [ { EnterMode = "Insert" }, "MoveToFirstLineChar" ]
";" = { EnterMode = "Command" }
":" = { EnterMode = "Command" }
"/" = { EnterMode = "Search" }
# "|" = "Split"
# "_" = "SplitVertical"
# "Ctrl-w" = { "w" = "NextWindow", "Ctrl-w" = "NextWindow" }
"Ctrl-p" = "FilePicker"
"Ctrl-z" = "Suspend"
"K" = "Hover"
# "W" = "ToggleWrap"
# "L" = "DecreaseLeft"
# "R" = "IncreaseLeft"
"v" = { EnterMode = "Visual" }
"V" = { EnterMode = "VisualLine" }
"Ctrl-v" = { EnterMode = "VisualBlock" }
"p" = "Paste"
"P" = "PasteBefore"
[keys.normal.">"]
">" = "IndentLine"
[keys.normal."<"]
"<" = "UnindentLine"
[keys.normal." "]
" " = "NextBuffer"
"n" = "NextBuffer"
"p" = "PreviousBuffer"
"b" = { PluginCommand = "BufferPicker" }
[keys.normal."d"]
"d" = "DeleteCurrentLine"
"w" = "DeleteWord"
"b" = "DumpBuffer"
"i" = "DumpDiagnostics"
"c" = "DumpCapabilities"
"h" = "DumpHistory"
"p" = "DoPing"
[keys.search]
Esc = { EnterMode = "Normal" }
[keys.command]
Esc = { EnterMode = "Normal" }
[keys.visual]
Esc = { EnterMode = "Normal" }
"k" = "MoveUp"
"j" = "MoveDown"
"h" = "MoveLeft"
"l" = "MoveRight"
"y" = [ "Yank", { EnterMode = "Normal" } ]
"x" = [ "Delete", { EnterMode = "Normal" } ]
"p" = [ "Paste", { EnterMode = "Normal" } ]
"w" = "MoveToNextWord"
"b" = "MoveToPreviousWord"
"I" = "InsertBlock"
# TODO: "i" = "SelectInside"
# TODO: "o" = "SelectOutside"
# TODO: "c" = "ChangeBlock"
# TODO: "r" = "ReplaceBlock"
[keys.visual_block]
Esc = { EnterMode = "Normal" }
[keys.visual_line]
Esc = { EnterMode = "Normal" }
[commands]
"write" = "Save"
"quit" = "Quit"
[plugins]
buffer_picker = "buffer_picker.js"