mirror of
https://github.com/VSCodeVim/Vim.git
synced 2024-09-19 16:18:45 +03:00
Update README to new escape key
This commit is contained in:
parent
e5499335c3
commit
1b8308cda7
10
README.md
10
README.md
@ -39,7 +39,7 @@ On OSX, the fix is to run this in the terminal. Be mindful as this is a global s
|
||||
|
||||
`defaults write -g ApplePressAndHoldEnabled -bool false`
|
||||
|
||||
#### How can I bind `jj` to `<esc>`?
|
||||
#### How can I bind `jj` to `<escape>`?
|
||||
|
||||
1. Add the following to `settings.json` (open the Command Pallete and search for "User Settings"):
|
||||
|
||||
@ -47,25 +47,25 @@ On OSX, the fix is to run this in the terminal. Be mindful as this is a global s
|
||||
"vim.insertModeKeyBindings": [
|
||||
{
|
||||
"before": ["j", "j"],
|
||||
"after": ["<esc>"]
|
||||
"after": ["<escape>"]
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
2. If you want to press `jj` in modes which are not Insert Mode and still have it trigger `<esc>`, do the following as well:
|
||||
2. If you want to press `jj` in modes which are not Insert Mode and still have it trigger `<escape>`, do the following as well:
|
||||
|
||||
```
|
||||
"vim.otherModesKeyBindings": [
|
||||
{
|
||||
"before": ["j", "j"],
|
||||
"after": ["<esc>"]
|
||||
"after": ["<escape>"]
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
Be sure to restart VSCode after making these changes.
|
||||
|
||||
#### How can I enable `ctrl-c` as an alternative to `<esc>`?
|
||||
#### How can I enable `ctrl-c` as an alternative to `<escape>`?
|
||||
|
||||
Put the following in your `settings.json`:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user