vim: Implement [ e and ] e from vim-unimpaired (#32851)

From [this
discussion](https://github.com/zed-industries/zed/discussions/30757).

The default vim keymap already implements some of [vim-unimpaired
keymaps](https://github.com/tpope/vim-unimpaired). I thought I could add
this one as well to move lines up and down.

Since the keymaps are in a plugin and not by default in vim, this might
be out of the scope. If you feel like this is the case, just close the
PR :)


Release Notes:

- vim: Added `[ e` and `] e` key bindings to move lines up and down.
This commit is contained in:
Alejandro Fernández Gómez 2025-06-17 20:27:27 +02:00 committed by GitHub
parent 6223d04282
commit dbc4ccd95a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -56,6 +56,9 @@
"[ shift-b": ["pane::ActivateItem", 0], "[ shift-b": ["pane::ActivateItem", 0],
"] space": "vim::InsertEmptyLineBelow", "] space": "vim::InsertEmptyLineBelow",
"[ space": "vim::InsertEmptyLineAbove", "[ space": "vim::InsertEmptyLineAbove",
"[ e": "editor::MoveLineUp",
"] e": "editor::MoveLineDown",
// Word motions // Word motions
"w": "vim::NextWordStart", "w": "vim::NextWordStart",
"e": "vim::NextWordEnd", "e": "vim::NextWordEnd",