nvim: keymappings: Add a useful mapping for closing tabs
This commit is contained in:
parent
a509c22865
commit
baa70ee678
|
@ -31,6 +31,9 @@ remap('n', '<Leader>tf', ':tabfirst<CR>', { noremap = true })
|
|||
remap('n', '<Leader>tl', ':tablast<CR>', { noremap = true })
|
||||
remap('n', '<Leader>tN', ':tabnew<CR>', { noremap = true })
|
||||
remap('n', '<Leader>tc', ':tabclose<CR>', { noremap = true })
|
||||
-- Jump to first tab & close all other tabs. Helpful after running Git
|
||||
-- difftool.
|
||||
remap('n', '<Leader>T', ':tabfirst<CR>:tabonly<CR>', { noremap = true })
|
||||
-- For tags
|
||||
remap('n', '[t', ':tprevious<CR>', { noremap = true })
|
||||
remap('n', ']t', ':tNext<CR>', { noremap = true })
|
||||
|
|
Loading…
Reference in a new issue