Skip to content

Commit 024bde2

Browse files
committed
update settings vim motions
1 parent 578a3a5 commit 024bde2

1 file changed

Lines changed: 33 additions & 118 deletions

File tree

settings.json

Lines changed: 33 additions & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@
184184
// vim-surround
185185
"vim.surround": true,
186186

187+
// vim settings binding key
187188
"vim.normalModeKeyBindingsNonRecursive": [
188189
{ "before": ["/"], "commands": ["fuzzySearch.activeTextEditor"] },
189190
{ "before": ["\\"], "commands": ["whichkey.show"] },
@@ -207,10 +208,7 @@
207208

208209
// move lines
209210
{ "before": ["<C-j>"], "commands": ["editor.action.moveLinesDownAction"] },
210-
{
211-
"before": ["<C-Down>"],
212-
"commands": ["editor.action.moveLinesDownAction"]
213-
},
211+
{ "before": ["<C-Down>"], "commands": ["editor.action.moveLinesDownAction"] },
214212
{ "before": ["<C-k>"], "commands": ["editor.action.moveLinesUpAction"] },
215213
{ "before": ["<C-Up>"], "commands": ["editor.action.moveLinesUpAction"] },
216214
{ "before": ["<C-d>"], "commands": ["editor.action.copyLinesDownAction"] },
@@ -241,96 +239,37 @@
241239
{ "before": ["m", "L"], "commands": ["bookmarks.listFromAllFiles"] },
242240

243241
// Buffers
244-
{
245-
"before": ["Q", "Q"],
246-
"commands": ["workbench.action.closeActiveEditor"]
247-
}, // Close buffer
242+
{ "before": ["Q", "Q"], "commands": ["workbench.action.closeActiveEditor"] }, // Close buffer
248243
{ "before": ["<S-h>"], "commands": [":bprevious"] },
249244
{ "before": ["<S-l>"], "commands": [":bnext"] },
250-
{
251-
"before": ["<leader>", "b", "n"],
252-
"commands": ["workbench.action.files.newUntitledFile"]
253-
}, // New Buffer/UntitiledFile
254-
{
255-
"before": ["<leader>", "b", "q"],
256-
"commands": ["workbench.action.closeActiveEditor"]
257-
}, // Close buffer
258-
{
259-
"before": ["<leader>", "b", "u"],
260-
"commands": ["workbench.action.reopenClosedEditor"]
261-
}, // Re-open buffer
262-
{
263-
"before": ["<leader>", "b", "y"],
264-
"commands": [
265-
"editor.action.selectAll",
266-
"editor.action.clipboardCopyAction",
267-
"cancelSelection"
268-
]
269-
}, // copy all file (Ctr+A - Ctrl C )
270-
{
271-
"before": ["<leader>", "b", "p"],
272-
"commands": ["editor.action.selectAll", "editor.action.past"]
273-
}, // selected all file and past
274-
{
275-
"before": ["<leader>", "b", "c"],
276-
"commands": ["workbench.action.closeOtherEditors"]
277-
}, // Close others buffer
278-
{
279-
"before": ["<leader>", "e"],
280-
"commands": ["workbench.action.toggleSidebarVisibility"]
281-
},
282-
// splits - mở cửa sổ editer trái phải
245+
{ "before": ["<leader>", "b", "n"], "commands": ["workbench.action.files.newUntitledFile"] }, // New Buffer/UntitiledFile
246+
{ "before": ["<leader>", "b", "q"], "commands": ["workbench.action.closeActiveEditor"] }, // Close buffer
247+
{ "before": ["<leader>", "b", "u"], "commands": ["workbench.action.reopenClosedEditor"] }, // Re-open buffer
248+
{ "before": ["<leader>", "b", "y"], "commands": [ "editor.action.selectAll", "editor.action.clipboardCopyAction", "cancelSelection" ] }, // copy all file (Ctr+A - Ctrl C )
249+
{ "before": ["<leader>", "b", "p"], "commands": ["editor.action.selectAll", "editor.action.past"] }, // selected all file and past
250+
{ "before": ["<leader>", "b", "c"], "commands": ["workbench.action.closeOtherEditors"] }, // Close others buffer
251+
{ "before": ["<leader>", "e"], "commands": ["workbench.action.toggleSidebarVisibility"] }, // splits - mở cửa sổ editer trái phải
283252
{ "before": ["<leader>", "v"], "commands": [":vsplit"] },
284253
{ "before": ["<leader>", "s"], "commands": [":split"] },
285254

286255
// Chuyển sang cửa sổ (editor) bên
287-
{
288-
"before": ["<leader>", "h"],
289-
"commands": ["workbench.action.focusLeftGroup"]
290-
},
291-
{
292-
"before": ["<leader>", "j"],
293-
"commands": ["workbench.action.focusBelowGroup"]
294-
},
295-
{
296-
"before": ["<leader>", "k"],
297-
"commands": ["workbench.action.focusAboveGroup"]
298-
},
299-
{
300-
"before": ["<leader>", "l"],
301-
"commands": ["workbench.action.focusRightGroup"]
302-
},
256+
{ "before": ["<leader>", "h"], "commands": ["workbench.action.focusLeftGroup"] },
257+
{ "before": ["<leader>", "j"], "commands": ["workbench.action.focusBelowGroup"] },
258+
{ "before": ["<leader>", "k"], "commands": ["workbench.action.focusAboveGroup"] },
259+
{ "before": ["<leader>", "l"], "commands": ["workbench.action.focusRightGroup"] },
303260

304261
// LEADER
305262
{ "before": ["<leader>", "r"], "commands": ["editor.action.rename"] },
306263
{ "before": ["<leader>", "p"], "commands": ["workbench.action.quickOpen"] },
307-
{
308-
"before": ["<leader>", "P"],
309-
"commands": ["workbench.action.showCommands"]
310-
},
264+
{ "before": ["<leader>", "P"], "commands": ["workbench.action.showCommands"] },
311265
{ "before": ["<leader>", "f"], "commands": ["actions.find"] },
312-
{
313-
"before": ["<leader>", "f", "a"],
314-
"commands": ["workbench.action.findInFiles"]
315-
},
266+
{ "before": ["<leader>", "f", "a"], "commands": ["workbench.action.findInFiles"] },
316267

317268
// #harpoon
318-
{
319-
"before": ["<leader>", "h", "p"],
320-
"commands": ["vscode-harpoon.editorQuickPick"]
321-
},
322-
{
323-
"before": ["<leader>", "h", "a"],
324-
"commands": ["vscode-harpoon.addEditor"]
325-
},
326-
{
327-
"before": ["<leader>", "h", "e"],
328-
"commands": ["vscode-harpoon.editEditors"]
329-
},
330-
{
331-
"before": ["<leader>", "h", "e"],
332-
"commands": ["vscode-harpoon.editEditors"]
333-
},
269+
{ "before": ["<leader>", "h", "p"], "commands": ["vscode-harpoon.editorQuickPick"] },
270+
{ "before": ["<leader>", "h", "a"], "commands": ["vscode-harpoon.addEditor"] },
271+
{ "before": ["<leader>", "h", "e"], "commands": ["vscode-harpoon.editEditors"] },
272+
{ "before": ["<leader>", "h", "e"], "commands": ["vscode-harpoon.editEditors"] },
334273

335274
//
336275
{ "before": ["<leader>", "y"], "commands": ["vim.showRegisters"] },
@@ -370,11 +309,11 @@
370309
// --------------------------------------
371310
// VSCode Animations:
372311
// --------------------------------------
373-
"animations.Command-Palette": "Slide", // Hiệu ứng animation cho Command Palette - "None", "Scale", "Slide", "Fade"
374-
"animations.Tabs": "Scale", // Hiệu ứng animation cho tab - "None", "Scale", "Slide", "Flip"
375-
"animations.Scrolling": "None", // Hiệu ứng animation khi cuộn - "None", "Scale", "Slide", "Fade"
376-
"animations.Active": "Indent", // Hiệu ứng animation cho item đang hoạt động - "None", "Scale", "Indent"
377-
"animations.CursorAnimation": true, // Hiệu ứng làm mờ khi mất focus
312+
"animations.Command-Palette": "Slide", // Hiệu ứng animation cho Command Palette - "None", "Scale", "Slide", "Fade"
313+
"animations.Tabs": "Scale", // Hiệu ứng animation cho tab - "None", "Scale", "Slide", "Flip"
314+
"animations.Scrolling": "None", // Hiệu ứng animation khi cuộn - "None", "Scale", "Slide", "Fade"
315+
"animations.Active": "Indent", // Hiệu ứng animation cho item đang hoạt động - "None", "Scale", "Indent"
316+
"animations.CursorAnimation": true, // Hiệu ứng làm mờ khi mất focus
378317
"animations.CursorAnimationOptions": {
379318
"Color": "#333",
380319
"CursorStyle": "line",
@@ -393,6 +332,11 @@
393332
"file:///Users/_david/vscode-custom/vscode-styles.css",
394333
"file:///Users/_david/.vscode/extensions/brandonkirbyson.vscode-animations-2.0.7/dist/updateHandler.js"
395334
],
335+
// "vscode_custom_css.imports": [
336+
// "file:///C:/Users/DanielVo/Documents/vscode-settings/vscode-script.js",
337+
// "file:///C:/Users/DanielVo/Documents/vscode-settings/vscode-styles.css",
338+
// "file:///C:/Users/DanielVo/.vscode/extensions/brandonkirbyson.vscode-animations-2.0.7/dist/updateHandler.js"
339+
// ],
396340

397341
// --------------------------------------
398342
// WHICH KEY
@@ -1037,12 +981,7 @@
1037981
"name": "[D]eveloper [+]",
1038982
"type": "bindings",
1039983
"bindings": [
1040-
{
1041-
"key": "r",
1042-
"name": "[r]eload Window",
1043-
"type": "command",
1044-
"command": "workbench.action.reloadWindow"
1045-
}
984+
{ "key": "r", "name": "[r]eload Window", "type": "command", "command": "workbench.action.reloadWindow" }
1046985
]
1047986
},
1048987
{
@@ -1055,12 +994,7 @@
1055994
"name": "Extension [c]ustom CSS and JS Loaded [+]",
1056995
"type": "bindings",
1057996
"bindings": [
1058-
{
1059-
"key": "r",
1060-
"name": "[r]eload/update",
1061-
"type": "command",
1062-
"command": "extension.updateCustomCSS"
1063-
}
997+
{ "key": "r", "name": "[r]eload/update", "type": "command", "command": "extension.updateCustomCSS" }
1064998
]
1065999
},
10661000
{
@@ -1119,27 +1053,8 @@
11191053
}
11201054
]
11211055
}
1122-
// {
1123-
// "command": "multiCommand.pushTo",
1124-
// "sequence": [
1125-
// "workbench.action.terminal.focus",
1126-
// "workbench.action.terminal.new",
1127-
// {
1128-
// "command": "workbench.action.terminal.sendSequence",
1129-
// "args": {
1130-
// "text": "git push origin ${input:branch}\u000D"
1131-
// }
1132-
// }
1133-
// ]
1134-
// }
11351056
],
1136-
// "multiCommand.inputs": {
1137-
// "branch": {
1138-
// "type": "promptString",
1139-
// "description": "Nhập tên branch để push"
1140-
// }
1141-
// },
1142-
1057+
11431058
// To improve performance
11441059
"extensions.experimental.affinity": {
11451060
"vscodevim.vim": 1

0 commit comments

Comments
 (0)