Enabling key-repeat for VSCode (Visual Studio Code) will vary based on your operating system. Find your operating system below and follow the instructions.
Instructions
Vim or its precursor Vi comes preinstalled on macOS and most Linux distributions. Searching text is one of the most common tasks when working with files. Knowing Vim’s basics might be very useful when you encounter a situation where your favorite editor is not available. Basic Search # To search in Vim you must be in normal mode. Dotfiles: Karabiner-Elements: Colemak: xmodmap: https://wik.
macOS
Vim Mac Save
To enable key repeat on mac for VSCode + Vim, run the following commands in the Terminal:
Windows
You shouldn’t have to adjust anything. If you do need to, take a look at the Settings inside VSCodeVim
Obisidian
If you want to enable key-repeating for a specific application like Obsidian, follow these steps.
macOS
Run the following command in the Terminal:
I asked this a while back in the Obsidian Forums and someone finally figured out the answer!
Adjust Key Repeat Settings
It’s also suggested that you increase Key Repeat and Delay Until Repeat settings.
macOS
Vim Macos Yank To Clipboard
- System Preferences -> Keyboard
- Adjsut Key Repeat -> Short
- Adjust Delay Until Repeat -> Short
Windows
- Select Settings
- Type in “Keyboard”
- Click on “Typing settings”
- Under speed, adjust Repeat delay -> Short
- Adjust Repeat rate - > Fast
Remap caps lock to ESC
A pro tip for using Vim with VSCode is to remap caps lock to escape. This makes vim key repeat work a lot smoother.
macOS
Gvim For Mac Os X
- System Preferences -> Keyboard
- Modifer Keys -> Caps Lock -> ESC
Macos Install Vim
Windows
Vim Mac M1
Look into the uncap project