From 6036b8b3bc9383adb5528bf172974cde8cb37f9f Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 30 May 2014 11:51:40 -0400 Subject: vimrc: add tx to delete current buffer & go to previous tab It was getting annoying having to keep typing "gT" after every ":bd". --- vimrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vimrc b/vimrc index 7f7ce1d..7d3e03f 100644 --- a/vimrc +++ b/vimrc @@ -173,6 +173,11 @@ " * Add sb to set scrollbinding so I can quickly set two windows " to scroll together " +" 2014.05.30: +" * Add tx to delete the current buffer and go to the previous +" tab. When I use :bd it goes to the next tab but more often I want to +" go back to the previous tab. +" " Pathogen @@ -452,6 +457,7 @@ nnoremap / :nohlsearch " Tabs nnoremap tn :tabnew +nnoremap tx :bdelete \| normal! gT " Quickfix nnoremap ]q :cnext -- cgit v1.2.3