-- go to the previous tab vim.keymap.set("n", "[g", vim.cmd.tabprev) -- go to the next tab vim.keymap.set("n", "]g", vim.cmd.tabnext) -- go to the first tab vim.keymap.set("n", "[G", [[1tabnext]]) -- go to the last tab vim.keymap.set("n", "]G", [[$tabnext]]) -- open a new tab with the current window vim.keymap.set("n", "", [[tab split]]) -- open an empty tab after the last tab vim.keymap.set( "n", "n", [[$tabedit]], { desc = "open new tab" } ) -- go to the last accessed tab vim.keymap.set( "n", "p", [[#tabnext]], { desc = "go to the last accessed tab" } ) -- close the current tab vim.keymap.set( "n", "c", [[tabclose]], { desc = "close current tab" } ) -- move the current tab to the left vim.keymap.set( "n", "<", [[-tabmove]], { desc = "move tab to the left" } ) -- move the current tab to the right vim.keymap.set( "n", ">", [[+tabmove]], { desc = "move tab to the right" } )