Skip to content

Commit b5b1c1e

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

1 file changed

Lines changed: 67 additions & 28 deletions

File tree

settings.json

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

187-
// vim settings binding key
188187
"vim.normalModeKeyBindingsNonRecursive": [
189188
{ "before": ["/"], "commands": ["fuzzySearch.activeTextEditor"] },
190189
{ "before": ["\\"], "commands": ["whichkey.show"] },
@@ -197,7 +196,7 @@
197196

198197
// Undo
199198
{ "before": ["<C-z>"], "commands": ["undo"] },
200-
199+
201200
// move
202201
{ "before": ["j"], "after": ["g", "j", "z", "z"] },
203202
{ "before": ["k"], "after": ["g", "k", "z", "z"] },
@@ -208,7 +207,10 @@
208207

209208
// move lines
210209
{ "before": ["<C-j>"], "commands": ["editor.action.moveLinesDownAction"] },
211-
{ "before": ["<C-Down>"], "commands": ["editor.action.moveLinesDownAction"] },
210+
{
211+
"before": ["<C-Down>"],
212+
"commands": ["editor.action.moveLinesDownAction"]
213+
},
212214
{ "before": ["<C-k>"], "commands": ["editor.action.moveLinesUpAction"] },
213215
{ "before": ["<C-Up>"], "commands": ["editor.action.moveLinesUpAction"] },
214216
{ "before": ["<C-d>"], "commands": ["editor.action.copyLinesDownAction"] },
@@ -248,28 +250,59 @@
248250
{ "before": ["<leader>", "b", "y"], "commands": [ "editor.action.selectAll", "editor.action.clipboardCopyAction", "cancelSelection" ] }, // copy all file (Ctr+A - Ctrl C )
249251
{ "before": ["<leader>", "b", "p"], "commands": ["editor.action.selectAll", "editor.action.past"] }, // selected all file and past
250252
{ "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
253+
{ "before": ["<leader>", "e"], "commands": ["workbench.action.toggleSidebarVisibility"] },
254+
// splits - mở cửa sổ editer trái phải
252255
{ "before": ["<leader>", "v"], "commands": [":vsplit"] },
253256
{ "before": ["<leader>", "s"], "commands": [":split"] },
254257

255258
// Chuyển sang cửa sổ (editor) bên
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"] },
259+
{
260+
"before": ["<leader>", "h"],
261+
"commands": ["workbench.action.focusLeftGroup"]
262+
},
263+
{
264+
"before": ["<leader>", "j"],
265+
"commands": ["workbench.action.focusBelowGroup"]
266+
},
267+
{
268+
"before": ["<leader>", "k"],
269+
"commands": ["workbench.action.focusAboveGroup"]
270+
},
271+
{
272+
"before": ["<leader>", "l"],
273+
"commands": ["workbench.action.focusRightGroup"]
274+
},
260275

261276
// LEADER
262277
{ "before": ["<leader>", "r"], "commands": ["editor.action.rename"] },
263278
{ "before": ["<leader>", "p"], "commands": ["workbench.action.quickOpen"] },
264-
{ "before": ["<leader>", "P"], "commands": ["workbench.action.showCommands"] },
279+
{
280+
"before": ["<leader>", "P"],
281+
"commands": ["workbench.action.showCommands"]
282+
},
265283
{ "before": ["<leader>", "f"], "commands": ["actions.find"] },
266-
{ "before": ["<leader>", "f", "a"], "commands": ["workbench.action.findInFiles"] },
284+
{
285+
"before": ["<leader>", "f", "a"],
286+
"commands": ["workbench.action.findInFiles"]
287+
},
267288

268289
// #harpoon
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"] },
290+
{
291+
"before": ["<leader>", "h", "p"],
292+
"commands": ["vscode-harpoon.editorQuickPick"]
293+
},
294+
{
295+
"before": ["<leader>", "h", "a"],
296+
"commands": ["vscode-harpoon.addEditor"]
297+
},
298+
{
299+
"before": ["<leader>", "h", "e"],
300+
"commands": ["vscode-harpoon.editEditors"]
301+
},
302+
{
303+
"before": ["<leader>", "h", "e"],
304+
"commands": ["vscode-harpoon.editEditors"]
305+
},
273306

274307
//
275308
{ "before": ["<leader>", "y"], "commands": ["vim.showRegisters"] },
@@ -309,11 +342,11 @@
309342
// --------------------------------------
310343
// VSCode Animations:
311344
// --------------------------------------
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
345+
"animations.Command-Palette": "Slide", // Hiệu ứng animation cho Command Palette - "None", "Scale", "Slide", "Fade"
346+
"animations.Tabs": "Scale", // Hiệu ứng animation cho tab - "None", "Scale", "Slide", "Flip"
347+
"animations.Scrolling": "None", // Hiệu ứng animation khi cuộn - "None", "Scale", "Slide", "Fade"
348+
"animations.Active": "Indent", // Hiệu ứng animation cho item đang hoạt động - "None", "Scale", "Indent"
349+
"animations.CursorAnimation": true, // Hiệu ứng làm mờ khi mất focus
317350
"animations.CursorAnimationOptions": {
318351
"Color": "#333",
319352
"CursorStyle": "line",
@@ -332,11 +365,6 @@
332365
"file:///Users/_david/vscode-custom/vscode-styles.css",
333366
"file:///Users/_david/.vscode/extensions/brandonkirbyson.vscode-animations-2.0.7/dist/updateHandler.js"
334367
],
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-
// ],
340368

341369
// --------------------------------------
342370
// WHICH KEY
@@ -981,7 +1009,12 @@
9811009
"name": "[D]eveloper [+]",
9821010
"type": "bindings",
9831011
"bindings": [
984-
{ "key": "r", "name": "[r]eload Window", "type": "command", "command": "workbench.action.reloadWindow" }
1012+
{
1013+
"key": "r",
1014+
"name": "[r]eload Window",
1015+
"type": "command",
1016+
"command": "workbench.action.reloadWindow"
1017+
}
9851018
]
9861019
},
9871020
{
@@ -994,7 +1027,12 @@
9941027
"name": "Extension [c]ustom CSS and JS Loaded [+]",
9951028
"type": "bindings",
9961029
"bindings": [
997-
{ "key": "r", "name": "[r]eload/update", "type": "command", "command": "extension.updateCustomCSS" }
1030+
{
1031+
"key": "r",
1032+
"name": "[r]eload/update",
1033+
"type": "command",
1034+
"command": "extension.updateCustomCSS"
1035+
}
9981036
]
9991037
},
10001038
{
@@ -1054,7 +1092,7 @@
10541092
]
10551093
}
10561094
],
1057-
1095+
10581096
// To improve performance
10591097
"extensions.experimental.affinity": {
10601098
"vscodevim.vim": 1
@@ -1081,5 +1119,6 @@
10811119
"statusBar.debuggingBackground": "#1F7D53",
10821120
"statusBar.foreground": "#ffffff",
10831121
"statusBar.debuggingForeground": "#ffffff"
1084-
}
1122+
},
1123+
10851124
}

0 commit comments

Comments
 (0)