-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDefault.sublime-keymap
47 lines (42 loc) · 1.05 KB
/
Default.sublime-keymap
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
[
// `cs` triggers surround_change in command mode
{
"keys": ["s"],
"command": "surround_change",
"context": [
{"key": "setting.command_mode"},
{"key": "vi_action", "operand": "enter_insert_mode"}
]
}
// `ds` triggers surround_delete in command mode
, {
"keys": ["s"],
"command": "surround_delete",
"context": [
{"key": "setting.command_mode"},
{"key": "vi_action", "operand": "vi_delete"}
]
}
// `ys` accepts a motion and triggers surround_selection in command mode
, {
"keys": ["s"],
"command": "set_action",
"args": {
"action": "surround_selection",
"description": "Surround"
},
"context": [
{"key": "setting.command_mode"},
{"key": "vi_action", "operand": "vi_copy"}
]
}
// `s` triggers surround_selection in visual mode
, {
"keys": ["s"],
"command": "surround_selection",
"context": [
{"key": "setting.command_mode"},
{"key": "selection_empty", "operator": "equal", "operand": false, "match_all": false}
]
}
]