From ccf63ab3fc8c378628c0e94f50369f4583ce148e Mon Sep 17 00:00:00 2001 From: Einherjar Date: Wed, 20 Sep 2023 15:14:02 -0300 Subject: [PATCH] feat(keymap): added split right/below keymaps --- lua/config/keymaps.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index 598d074..33b4aed 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -22,7 +22,7 @@ vim.keymap.set("n", "", "zz") vim.keymap.set("n", "n", "nzzzv") vim.keymap.set("n", "N", "Nzzzv") --- better indenting +-- Better indenting vim.keymap.set("v", "<", "", ">gv") @@ -50,6 +50,10 @@ vim.keymap.set("n", "w", "w", { silent = true, desc = "[S]ave F vim.keymap.set("n", "q", "q", { silent = true, desc = "[Q]uit" }) vim.keymap.set("n", "Q", "qa!", { silent = true, desc = "[Q]uit Force All" }) +-- Split window +vim.keymap.set("n", "-", "s", { desc = "Split window below", remap = true }) +vim.keymap.set("n", "|", "v", { desc = "Split window right", remap = true }) + -- Global Yank/Paste vim.keymap.set( { "n", "v" },