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
99
votes
8 answers

VS code VIM extension copy and paste

Is there a normal way to copy and paste in vs code using vim extension? I've tried mapping VIM register commands to the shortcut commands I'm used to (ctrl + c for copying and ctrl + v for pasting), but the results are pretty weird and I'm not sure…
manish ma
  • 1,706
  • 1
  • 14
  • 19
50
votes
6 answers

Use in Visual Studio Code (Vim extension) CAPS instead of ESC

I use Debian and I switched from Vim to Visual Studio Code, when I noticed, that there is a Vim movement extension for VS Code from vscodevim. While I was using Vim, I mapped my Caps lock key to the ESC key. In Vim it works perfectly, but VS Code is…
Kevin
  • 601
  • 1
  • 5
  • 4
40
votes
3 answers

How to toggle between vim-emulation and no-vim-emulation when the vscodevim extension is installed?

I haven't found a way to quickly do this without having to entirely disable the extension in the "Extensions" panel. In IntelliJ IDEA, one can easily toggle on/off the emulation with a configurable keyboard shortcut. I guess it should also be…
ARX
  • 1,040
  • 2
  • 14
  • 20
27
votes
2 answers

Code folds are automatically opened when cursor moves over them in VS Code Vim. How can I prevent this?

I like to fold code in the VS Code editor, but even when I fold some code blocks, they are opened when I move over them with my cursor using j / k using the VS Code Vim extension. How can I protect my code folds from automatically opening like this?
JongHyeon Yeo
  • 879
  • 1
  • 10
  • 18
19
votes
0 answers

VSCodeVim: How do I get CTRL+P / CTRL+N non-IntelliSense completion identical to how it works in VIM?

The main thing missing in my VSCodeVim setup is Ctrl + P and Ctrl + N simple word completion when in insert mode. I have googled extensively on how to set this up, but found nothing that works the way I expect when the ms-vscode.cpptools extension…
Bob Builder
  • 393
  • 2
  • 6
14
votes
1 answer

Command-hover tooltip in VSCode VIM without using mouse

I recently discovered that there is an expanded hover tooltip in VSCode vim that can be seen by hovering over a token while holding the command key. In my case I'm particularly interested in seeing typescript type definitions that are available in…
Ben Zittlau
  • 2,345
  • 1
  • 21
  • 30
14
votes
2 answers

Visual Studio Code built-in hard wrap

I'm doing some documentation in Markdown using Visual Studio Code. The problem is that I'm used to hard wrapping. The only way I've found for setting hard wrapping in Visual Studio Code is by the EditorConfig extension. EditorConfig is not a…
ctafur
  • 145
  • 2
  • 5
13
votes
4 answers

How to search and replace function for "vscode vim"?

i have tried but didnot find a way to search and replace in vscode with the vim keybindings plugin. The vim console doesn't take regular vims search and replace function :5,9s/foo/bar/g and vscode's default Ctrl+f doesn't work either as it is a vim…
Lucas
  • 133
  • 1
  • 1
  • 7
12
votes
3 answers

In VSCode, Exit Vim Insert Mode on Save

I use VSCode with the VSCodeVim extension. When in Insert Mode, I can press "CMD-S" to save. When I do, I would also like to exit Insert Mode automatically instead of pressing "ESC" as well. Is this possible?
earllee
  • 285
  • 3
  • 11
10
votes
3 answers

Is there a way to remap Caps_Lock to be the escape key on vscode's vim?

Problem I want to use Caps_Lock as the key to exit insert mode in Visual Studio code's vim extension. I have already remapped the keys in Xorg with Xmodmap, but Visual studio doesn't seem to really matter. My VScode settings As you can see, I…
Yoquec
  • 261
  • 2
  • 9
10
votes
1 answer

Can Visual Studio Code `quick fix` interact with keyboard?

I am using VS Code with the excellent vscodevim extension. When I navigate to a code that has a Quick Action available I can ctrl + . to activate the drop down context menu. Is there a way to select toggle through the list of available items using…
THBBFT
  • 1,161
  • 1
  • 13
  • 29
9
votes
3 answers

How do you avoid key binding collisions between VS Code and vscodevim?

I have some shoulder pain that I am trying to get rid of by using vscodevim. My biggest problem with vscodevim so far is that is sometimes collides with VS code shortcuts. For example I often save all my files with Ctrl+K S. But with vscodevim…
user1283776
  • 19,640
  • 49
  • 136
  • 276
9
votes
5 answers

How to move current line up or down in vim for vscode

Using VS Code, how can I move the current line I am on (or the current selection) up or down using Vim keybindings? When using the editor as normal, I can achieve this using 'alt + up/down'. I am using the vscodevim extension.
Hayden
  • 241
  • 3
  • 6
9
votes
1 answer

Change cursor in VSCodeVim during insert or command mode?

Using the most excellent VSCodeVim plugin. Is it possible to have the cursor change when in normal/command mode (block perhaps) versus input mode (vertical or underline perhaps)?
Dave Remy
  • 91
  • 2
9
votes
2 answers

VSCode + VSCodeVim undo key rebinding

VSCodeVim uses different undo stack and it annoys me when after undoing all the unsaved changes in vim undo stack, VSCode still shows that file is not saved. For that reason, I'd like to use VSCode's undo stack and map "u" to "Ctrl+z". My keybinding…
Nikita Karpinsky
  • 503
  • 4
  • 10
1
2 3
8 9