Update README to new escape key

This commit is contained in:
johnfn 2016-08-02 23:47:10 -07:00
parent e5499335c3
commit 1b8308cda7

View File

@ -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`: