diff --git a/lua/custom/maps/init.lua b/lua/custom/maps/init.lua index 6918230..de07d1c 100644 --- a/lua/custom/maps/init.lua +++ b/lua/custom/maps/init.lua @@ -59,6 +59,8 @@ vim.keymap.set({ 'n' }, '#', "'", { desc = '[Q]uit the current window' }) -- split windows vim.keymap.set('n', '"', 'vsplit', { desc = 'Split the window vertically' }) vim.keymap.set('n', '%', 'split', { desc = 'Split the window horizontally' }) +vim.keymap.set('n', 'w"', 'vnew', { desc = 'Split the window vertically (new buffer)' }) +vim.keymap.set('n', 'w%', 'new', { desc = 'Split the window horizontally (new buffer)' }) -- window actions vim.keymap.set('n', 'wbn', 'enew', { desc = 'Open a [N]ew [B]uffer' }) @@ -75,6 +77,7 @@ vim.keymap.set('n', 'wn', 'tabnew', { desc = 'Open a [N]ew [W]o vim.keymap.set('n', 'wc', 'tabclose', { desc = '[C]lose a [W]orkspace/Tab' }) vim.keymap.set('n', 'wk', 'tabnext', { desc = 'Next [W]orkspace/Tab' }) vim.keymap.set('n', 'wj', 'tabprevious', { desc = 'Last [W]orkspace/Tab' }) +vim.keymap.set('n', 'n', 'enew', { desc = '[N]ew Buffer' }) vim.keymap.set('t', '', vim.api.nvim_replace_termcodes('', true, true, true), { desc = 'Leave terminal mode' })