From 229d1b79d910267f0591859736010160b169dde0 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Thu, 24 Oct 2024 11:22:31 +0200 Subject: [PATCH] Remap: bD -> bd (buffer delete), add: bo (buffer delete others) --- lua/keymaps.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/keymaps.lua b/lua/keymaps.lua index 06fbe28..aa8808c 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -67,7 +67,8 @@ vim.keymap.set('o', 'N', "'nN'[v:searchforward]", { expr = true, desc = 'Prev Se vim.keymap.set('n', '', 'bprevious', { desc = 'Prev Buffer' }) vim.keymap.set('n', '', 'bnext', { desc = 'Next Buffer' }) vim.keymap.set('n', 'bb', 'e #', { desc = 'Switch to Other Buffer' }) -vim.keymap.set('n', 'bD', ':bd', { desc = 'Delete Buffer and Window' }) +vim.keymap.set('n', 'bd', ':bd', { desc = 'Delete Buffer and Window' }) +vim.keymap.set('n', 'bo', '%bd|e#|bd#', { desc = 'Delete Other Buffers' }) -- Tabs vim.keymap.set('n', 'l', 'tablast', { desc = 'Last Tab' })