zed/assets/keymaps
Conrad Irwin dd577074f2
vim: Fix relative motions (#2888)
This changes vim motions to be relative to fold lines, not display
lines, to match the behaviour of vim.

This is necessary for relative line numbers to make sense (as the most
important thing is you can do `3j` to get th e line that is numbered 3).


Release Notes:

- vim: Fix handling of motions when `soft_wrap` is enabled in zed. Like
in vim `j,k,up,down,$,^,0,home,end` will all now navigate in file
coordinates not display coordinates.
- vim: Add `g {j,k,up,down,$,^,0,home,end}` to navigate in display
coordinates.
- vim: Add `z o` and `z c` to open and close folds.
- vim: Add `z f` in visual mode to fold selection.

Note: this may be a jarring change if you're grown used to the current
behaviour of `j` and `k`. You can make the issue less acute by setting
`"soft_wrap":"none"` in your settings; or you can manually copy the
bindings for `g j` to the binding for `j` (etc.) in your keymap.json to
preserve the existing behaviour.
2023-08-29 11:19:37 -07:00
..
atom.json feat(workspace): allow alternative actions to open files and symbols in split 2023-07-14 21:49:15 +02:00
default.json Add a default binding for toggling inlay hints 2023-08-29 20:56:26 +03:00
jetbrains.json feat(workspace): allow alternative actions to open files and symbols in split 2023-07-14 21:49:15 +02:00
sublime_text.json feat(workspace): allow alternative actions to open files and symbols in split 2023-07-14 21:49:15 +02:00
textmate.json Update textmate.json 2023-08-23 01:31:01 -04:00
vim.json vim: Fix relative line motion 2023-08-25 14:40:04 -06:00