From 1f04bef2db25bb386c70fa3b63bb73cedb07f9a9 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(-) diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index c0709dc..49d7165 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