Questions tagged [vscodevim]

for questions related to the extension vscodevim for editor Visual Studio Code.

Extension for editor Visual Studio Code to emulate vim.

130 questions
3
votes
2 answers

How to auto save file in VSCode on Esc when using Vim extension?

I wonder, how can I save current file automatically in VSCode after leaving insert mode in Vim by pressing Esc key?
Shersh
  • 9,019
  • 3
  • 33
  • 61
3
votes
1 answer

VSCodeVim key-remap

I'm able to jump to the end of the line in VIM in insert mode by having the following in my .vimrc: inoremap $ inoremap maps a key combination for insert mode is the keybinding I am creating. is a command that…
user4426017
  • 1,930
  • 17
  • 31
3
votes
0 answers

VSCodeVim Normal Mode Key Bindings ^ Setting

I am using vscode with vim (by extension vscodevim), But some my setting in the vim is not work "vim.normalModeKeyBindings": [ { "before":["h","h"], "after":["^"] } ] But the insert mode is…
Marsen Lin
  • 198
  • 1
  • 1
  • 15
3
votes
1 answer

Why is vscode vim.otherModesKeyBindingNonRecursive an unknown configuration?

I had this setting for couple of weeks now but it stopped working today. This is a setting for vscode vim easymotion. I dont know what happened. I havent change anything. Does anyone know why? OS macOS high Sierra. Vscode Version 1.24.1…
bluejimmy
  • 390
  • 6
  • 14
3
votes
1 answer

auto-select on workbench.action.openNextRecentlyUsedEditorInGroup in VSCode

Is it possible to send an argument, or make a setting, in VSCode so that using the named function always selects the first match without confirm? I want to rebind to another key than Ctrl-tab (leader + key in VSCodeVim to be specific), and when I do…
3
votes
1 answer

vscode vim surround adding spaces when changing from double to single quote

Using vscodevim (not the surround extension) in a text file. When doing the most basic surround example (straight from Tim Pope's surround.vim page). Press cs"' inside "Hello world!" and I expect it to change it to: 'Hello world!' however it…
Dave Remy
  • 834
  • 2
  • 8
  • 10
2
votes
2 answers

How can I keybind opening a new terminal to the right of my current opened files?

Currently I have the below snippet of code that doesn't really seem to do what I want it to do under my vim normal mode keybindings: { "before": ["", "f", "t"], "commands": [ …
Hendrik
  • 175
  • 8
2
votes
1 answer

VSCode Vim Addon: How do I set up Insert mode to basicity be normal VSCode (Vim disabled)?

I love the keyboard shortcuts offered in Vim Normal mode and find them very helpful but I also like the keyboard shortcuts in normal VSCode. For example all the multi-cursor stuff. like ctrl+d (highlight next occurrence) or ctrl+f2: (highlight all…
2
votes
1 answer

Indent multiple times with VSCode and Vim extension?

When I try to indent multiple lines I highlight the lines (SHIFT+V) then indent (SHIFT+>). That works if I only want to indent one time. But if I try to indent multiple times my highlighted area gets lost after the first indent, I must repeat the…
Schneems
  • 14,918
  • 9
  • 57
  • 84
2
votes
1 answer

VSCode Vim: map to function key

I'm trying out VSCode Vim and I'm having trouble remapping d to a Go To Definition action. I've found that F12 is a Go To Definition shortcut in VSCode - now I'd like to set up a mapping from d to F12 but I can't figure it out. I've…
Paymahn Moghadasian
  • 9,301
  • 13
  • 56
  • 94
2
votes
3 answers

Vim VS Code Extension: How to remap "i" in normal mode to Escape key?

So I want to remap "i" to escape key since i find it easier to remember. But when I do this to settings.json of the VS Code: "vim.normalModeKeyBindings": [ { "before": [ "i" ], "after": [ "" …
Harvey
  • 25
  • 1
  • 4
2
votes
0 answers

Can I skip a word using multi cursors in VSCode with Vim KeyBinding?

The operation performed in the captured video is to use VSCode's multi-cursor to select multiple identical words. In detail, there are two operations: Ctrl+d to select, Ctrl+k and Ctrl+d to deselect. My question is whether this operation can be done…
isoittech
  • 436
  • 5
  • 11
2
votes
1 answer

How to disable caps lock when entering normal mode in VSCode Vim?

My environment MacOS: Catalina 10.15.5 (19F101) VSCode: Version: 1.45.1 Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a Date: 2020-05-14T08:33:47.663Z Electron: 7.2.4 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Darwin x64…
KIYZ
  • 412
  • 1
  • 5
  • 12
2
votes
2 answers

How to I set up highlight with search word in VSCodeVim when press shift + *

In vim, I am able to highlight the search word by moving my cursor to word and press shift + *. How can I perform the same in visual studio code with VSCodeVim extension?
jacobcan118
  • 7,797
  • 12
  • 50
  • 95
2
votes
1 answer

VSCodeVim - binding copy/replace word under cursor

I need to copy the word under cursor, navigate to a different word in the document and replace it with the previous one I copied. I do this so often that I use some custom key bindings for this. f maps to yiw (Yank In Word) ff maps to viwp (Select…
rranjik
  • 690
  • 9
  • 21
1 2
3
8 9