-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkeybindings.json
More file actions
executable file
·67 lines (57 loc) · 1.88 KB
/
keybindings.json
File metadata and controls
executable file
·67 lines (57 loc) · 1.88 KB
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
// Todo:: add variables declare to e.g. declare $leader$
visual{
"<Escape>": NormalMode();
"d": DeleteSelection(true) NormalMode();
" d": DeleteSelection(false) NormalMode();
"y": CopySelected() NormalMode();
"l": MoveCursor(1, 0) UpdateVisualModeSelection();
"h": MoveCursor(-1, 0) UpdateVisualModeSelection();
"k": MoveCursor(0, 1) UpdateVisualModeSelection();
"j": MoveCursor(0, -1) UpdateVisualModeSelection();
"e": GoToEndOfWord(true) UpdateVisualModeSelection();
"E": GoToEndOfWord(false) UpdateVisualModeSelection();
"b": GoToStartOfWord(true) UpdateVisualModeSelection();
"B": GoToStartOfWord(false) UpdateVisualModeSelection();
"ts": DebugSelection();
}
normal{
"q": Quit();
"_s": SaveBuffer();
"v": VisualMode();
" dd": DeleteCurrentLine(false);
"dd": DeleteCurrentLine(true);
" daw": SelectCurrentWords(true) DeleteSelection(false);
" daW": SelectCurrentWords(false) DeleteSelection(false);
"daw": SelectCurrentWords(true) DeleteSelection(true);
"daW": SelectCurrentWords(false) DeleteSelection(true);
"saw": SelectCurrentWords(true);
"saW": SelectCurrentWords(false);
"i": InsertMode();
"a": InsertMode() MoveCursor(1,0);
"l": MoveCursor(1, 0);
"h": MoveCursor(-1, 0);
"k": MoveCursor(0, 1);
"j": MoveCursor(0, -1);
"e": GoToEndOfWord(true);
"E": GoToEndOfWord(false);
"b": GoToStartOfWord(true);
"B": GoToStartOfWord(false);
"tw": WriteText(Test);
"ts": DebugSelection();
"yy": SelectCurrentLine() CopySelected();
"yaw": SelectCurrentWords(true) CopySelected();
"yaW": SelectCurrentWords(false) CopySelected();
"p": PasteFromClipboard();
"_c": SelectCurrentLine() CopySelected();
"_v": PasteFromClipboard();
"_z" : Undo();
"u" : Undo();
"<Enter>": OpenCurrentFile();
}
insert{
"jj": NormalMode();
"<Escape>": NormalMode();
"<Backspace>": BackspaceLetters(1);
"<Delete>": DeleteLetters(1);
"<Enter>": InsertLine();
}