Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 40 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,48 @@ VSCodeVim can be installed via the VS Code [Marketplace](https://marketplace.vis

### Mac

To enable key-repeating, execute the following in your Terminal, log out and back in, and then restart VS Code:
To enable key-repeating, execute one of the following commands in your Terminal depending on the application you are using, log out and back in, and then restart VS Code:

#### VS Code

```sh
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false
```

#### VS Code Insider

```sh
defaults write com.microsoft.VSCodeInsiders ApplePressAndHoldEnabled -bool false
```

#### VS Codium

```sh
defaults write com.vscodium ApplePressAndHoldEnabled -bool false
```

#### VS Codium Exploration

```sh
defaults write com.microsoft.VSCodeExploration ApplePressAndHoldEnabled -bool false
```

#### Cursor

```sh
defaults write -app Cursor ApplePressAndHoldEnabled -bool false
```

If that does not work for Cursor, try using the domain of the app:

```sh
defaults write "$(osascript -e 'id of app "Cursor"')" ApplePressAndHoldEnabled -bool false
```

#### If necessary, reset global default

```sh
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false # For VS Code
defaults write com.microsoft.VSCodeInsiders ApplePressAndHoldEnabled -bool false # For VS Code Insider
defaults write com.vscodium ApplePressAndHoldEnabled -bool false # For VS Codium
defaults write com.microsoft.VSCodeExploration ApplePressAndHoldEnabled -bool false # For VS Codium Exploration users
defaults delete -g ApplePressAndHoldEnabled # If necessary, reset global default
defaults delete -g ApplePressAndHoldEnabled
```

We also recommend increasing Key Repeat and Delay Until Repeat settings in _System Preferences -> Keyboard_.
Expand Down