From 76a11871d828cd266f47911db35d215ffc15ff13 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 1 Jun 2019 15:51:42 +0200 Subject: vimrc: Add `tc` mapping to close current tab Add a mapping to close tabs with multiple windows more quickly. --- vimrc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 8bfd146..10ec759 100644 --- a/vimrc +++ b/vimrc @@ -415,6 +415,9 @@ " * Use long command line options to `ag` in `g:pick_command`. " * Include hidden files in `g:pick_command`. " +" 2019.06.01: +" * Add `tc` mapping to close current tab. +" " Pathogen @@ -718,6 +721,9 @@ nnoremap td :bdelete \| normal! gT " Quit buffer and go to previous tab nnoremap tq :quit \| normal! gT +" Close tab +nnoremap tc :tabclose + " Go to last viewed tab " http://stackoverflow.com/a/2120168 let g:last_viewed_tab = 1 -- cgit v1.2.3