From dbc4ccd95ac45376465a8cfed235cb49db6fa40f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Fern=C3=A1ndez=20G=C3=B3mez?= Date: Tue, 17 Jun 2025 20:27:27 +0200 Subject: [PATCH] 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. --- assets/keymaps/vim.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/keymaps/vim.json b/assets/keymaps/vim.json index 59c5dd9aa8..dde0770848 100644 --- a/assets/keymaps/vim.json +++ b/assets/keymaps/vim.json @@ -56,6 +56,9 @@ "[ shift-b": ["pane::ActivateItem", 0], "] space": "vim::InsertEmptyLineBelow", "[ space": "vim::InsertEmptyLineAbove", + "[ e": "editor::MoveLineUp", + "] e": "editor::MoveLineDown", + // Word motions "w": "vim::NextWordStart", "e": "vim::NextWordEnd",