From 9b33655f9b35e6c4e48987454e2491c0974fbb40 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 11 Jun 2024 22:20:31 +0200 Subject: nvim: Remap in visual- but not select mode --- .config/nvim/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.config/nvim/init.lua') diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 1e7f0f3..0d7763e 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -72,9 +72,9 @@ vim.keymap.set('n', 'M', ':make', { desc = 'Run the configured compiler' }) vim.keymap.set('n', 'V', '', { desc = 'Enter visual-block mode' }) -vim.keymap.set('v', '', ":m '>+1gv=gv", +vim.keymap.set('x', '', ":m '>+1gv=gv", { desc = 'Move a selection down a line' }) -vim.keymap.set('v', '', ":m '<-2gv=gv", +vim.keymap.set('x', '', ":m '<-2gv=gv", { desc = 'Move a selection up a line' }) vim.keymap.set({ 'n', 'o', 'x' }, '€', '$', { desc = 'Go to end of the line' }) -- cgit v1.2.3