From 769858aaf1971d58200fa9f715baf683d30e9f02 Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Fri, 8 Sep 2023 16:25:02 +0200 Subject: [PATCH] go to end after join --- lua/plex/config/keymaps.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/plex/config/keymaps.lua b/lua/plex/config/keymaps.lua index 887b208..c218c88 100644 --- a/lua/plex/config/keymaps.lua +++ b/lua/plex/config/keymaps.lua @@ -120,8 +120,10 @@ map('n', 'o', 'o', { desc = 'Insert newline below' }) map('i', '', 'o', { desc = 'Start Newline' }) -- Split and join lines -map('n', 'jj', ':join', { desc = 'Join lines', silent = true }) +map('n', 'jj', ':joing$', { desc = 'Join lines', silent = true }) +map('n', 'jJ', 'k:joinj', { desc = 'Join lines', silent = true }) map('n', 'ss', 'i', { desc = 'Split lines', silent = true }) +map('n', 'sS', 'ik', { desc = 'Split lines', silent = true }) -- Re-select blocks after indenting in visual/select mode map('x', '<', '