From baa70ee6785359fbfe2f4a26e93405ec7472a812 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Thu, 22 Apr 2021 10:54:49 +0530 Subject: [PATCH] nvim: keymappings: Add a useful mapping for closing tabs --- nvim/.config/nvim/lua/keymappings.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nvim/.config/nvim/lua/keymappings.lua b/nvim/.config/nvim/lua/keymappings.lua index 99c956e..c6a1aaf 100644 --- a/nvim/.config/nvim/lua/keymappings.lua +++ b/nvim/.config/nvim/lua/keymappings.lua @@ -31,6 +31,9 @@ remap('n', 'tf', ':tabfirst', { noremap = true }) remap('n', 'tl', ':tablast', { noremap = true }) remap('n', 'tN', ':tabnew', { noremap = true }) remap('n', 'tc', ':tabclose', { noremap = true }) +-- Jump to first tab & close all other tabs. Helpful after running Git +-- difftool. +remap('n', 'T', ':tabfirst:tabonly', { noremap = true }) -- For tags remap('n', '[t', ':tprevious', { noremap = true }) remap('n', ']t', ':tNext', { noremap = true })