zed/crates/vim/src
Conrad Irwin 20aa2a4c54 vim: Fix relative line motion
Before this change up and down were in display co-ordinates, after this
change they are in fold coordinates (which matches the vim behaviour).

To make this work without causing usabliity problems, a bunch of extra
keyboard shortcuts now work:

- vim: `z {o,c}` to open,close a fold
- vim: `z f` to fold current visual selection
- vim: `g {j,k,up,down}` to move up/down a display line
- vim: `g {0,^,$,home,end}` to get to start/end of a display line

Fixes: zed-industries/community#1562
2023-08-25 14:40:04 -06:00
..
normal vim: Fix relative line motion 2023-08-25 14:40:04 -06:00
test vim: Fix relative line motion 2023-08-25 14:40:04 -06:00
editor_events.rs Don't show vim mode when disabled 2023-08-18 15:50:34 -06:00
insert.rs Merge MutableAppContext into AppContext 2023-04-06 15:49:03 -06:00
mode_indicator.rs Give up on monospace indicator 2023-08-17 16:04:55 -06:00
motion.rs vim: Fix relative line motion 2023-08-25 14:40:04 -06:00
normal.rs vim: Fix relative line motion 2023-08-25 14:40:04 -06:00
object.rs Merge branch 'main' into Z-2819 2023-08-21 17:41:27 +02:00
state.rs Store some vim state per-editor 2023-08-17 14:09:47 -06:00
test.rs vim: Fix relative line motion 2023-08-25 14:40:04 -06:00
utils.rs vim: Fix linewise copy of last line with no trailing newline 2023-08-24 00:00:12 -06:00
vim.rs Preserve line mode selection on undo 2023-08-17 15:40:27 -06:00
visual.rs vim: Fix relative line motion 2023-08-25 14:40:04 -06:00