From f5cc648a89b22ef6184dd6f65c4db4c40f1526ff Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Sat, 9 Sep 2023 04:21:29 +0200 Subject: [PATCH] Remove many window and buffer mappings --- lua/core/mappings.lua | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index 7ab19ea..57650fa 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -23,26 +23,9 @@ vim.keymap.set("n", "tn", ":tabnew", opts) vim.keymap.set("n", "tq", ":tabclose", opts) -- switch tabs with Ctrl+PgUp/Ctrl+PgDwn (default vim mapping) ---- Window mappings --- -vim.keymap.set("n", "", ":wincmd h", opts) -vim.keymap.set("n", "", ":wincmd j", opts) -vim.keymap.set("n", "", ":wincmd k", opts) -vim.keymap.set("n", "", ":wincmd l", opts) --- Open new window in horizontal split -vim.keymap.set("n", "\"", ":new", opts) --- Open new window in vertical split -vim.keymap.set("n", "%", ":vnew", opts) --- Open new window in horizontal split at bottom -vim.keymap.set("n", "", ":bo new", opts) --- Close buffer and window -vim.keymap.set("n", "q", ":bd", opts) - --- Buffer mappings --- --- Navigate up/down half a screen -vim.keymap.set({ "n", "v", }, "", "", opts) -vim.keymap.set({ "n", "v", }, "", "", opts) -- Center cursorline -vim.keymap.set("n", "", "zz", opts) +vim.keymap.set("n", "", "zz", opts) -- Save buffer vim.keymap.set("n", "", ":w", opts) -- Cycle buffers