mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-07 02:57:34 +00:00
parent
f780504b68
commit
9e3c5f3e12
1 changed files with 20 additions and 0 deletions
|
@ -137,6 +137,26 @@ Binding `jk` to exit insert mode and go to normal mode:
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Restoring some sense of normality
|
||||||
|
|
||||||
|
If you're using Vim mode on Linux or Windows, you may find that it has overridden keybindings
|
||||||
|
that you can't live without. You can restore them to their defaults by copying these into your keymap:
|
||||||
|
|
||||||
|
```
|
||||||
|
{
|
||||||
|
"context": "Editor && !VimWaiting && !menu",
|
||||||
|
"bindings": {
|
||||||
|
"ctrl-c": "editor::Copy", // vim default: return to normal mode
|
||||||
|
"ctrl-x": "editor::Cut", // vim default: increment
|
||||||
|
"ctrl-v": "editor::Paste", // vim default: visual block mode
|
||||||
|
"ctrl-y": "editor::Undo", // vim default: line up
|
||||||
|
"ctrl-f": "buffer_search::Deploy", // vim default: page down
|
||||||
|
"ctrl-o": "workspace::Open", // vim default: go back
|
||||||
|
"ctrl-a": "editor::SelectAll", // vim default: increment
|
||||||
|
}
|
||||||
|
},
|
||||||
|
```
|
||||||
|
|
||||||
## Command palette
|
## Command palette
|
||||||
|
|
||||||
Vim mode allows you to enable Zed’s command palette with `:`. This means that you can use vim's command palette to run any action that Zed supports.
|
Vim mode allows you to enable Zed’s command palette with `:`. This means that you can use vim's command palette to run any action that Zed supports.
|
||||||
|
|
Loading…
Reference in a new issue