It looks like typically vim configurations bind "j k" to be the same as escape, which has the "NormalBefore" behavior positioning the block cursor on the character before the insertion cursor. The [vim mode docs](https://zed.dev/docs/vim#useful-contexts-for-vim-mode-key-bindings) also use NormalBefore here. Thanks to @omniwrench for mentioning this in https://github.com/zed-industries/zed/discussions/6661#discussioncomment-13848043 . This was a mistake in #31163. Release Notes: - N/A
22 lines
450 B
JSON
22 lines
450 B
JSON
// Zed keymap
|
|
//
|
|
// For information on binding keys, see the Zed
|
|
// documentation: https://zed.dev/docs/key-bindings
|
|
//
|
|
// To see the default key bindings run `zed: open default keymap`
|
|
// from the command palette.
|
|
[
|
|
{
|
|
"context": "Workspace",
|
|
"bindings": {
|
|
// "shift shift": "file_finder::Toggle"
|
|
}
|
|
},
|
|
{
|
|
"context": "Editor && vim_mode == insert && !menu",
|
|
"bindings": {
|
|
// "j k": "vim::NormalBefore"
|
|
}
|
|
}
|
|
]
|