Skip to content

Instantly share code, notes, and snippets.

@theicfire
Last active March 11, 2024 12:55
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save theicfire/dc3f7f8c9a19467643a58dff22eb00d9 to your computer and use it in GitHub Desktop.
Save theicfire/dc3f7f8c9a19467643a58dff22eb00d9 to your computer and use it in GitHub Desktop.
vscode_vim_settings
{
// See the VIM extension docs for more details
"vim.leader": "<space>",
"vim.sneak": true,
"vim.incsearch": true,
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": true,
"vim.hlsearch": true,
"vim.visualModeKeyBindingsNonRecursive": [
{
// By default, "p" in visual mode will copy whatever text was replaced. To prevent this, after pasting, select the newly replaced text and copy it.
"before": [
"p"
],
"after": [
"p",
"g",
"v",
"y"
]
},
// Bind > and < in visual mode to indent/outdent lines (repeatable)
{
"before": [
">"
],
"commands": [
"editor.action.indentLines"
]
},
{
"before": [
"<"
],
"commands": [
"editor.action.outdentLines"
]
}
],
"vim.normalModeKeyBindingsNonRecursive": [
// Turn off VIM's search highlighting
{
"before": [
"<leader>",
"s",
"h"
],
"commands": [
":nohl"
]
},
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment