aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorTeddy Wing2014-05-30 11:51:40 -0400
committerTeddy Wing2014-05-30 11:51:40 -0400
commit6036b8b3bc9383adb5528bf172974cde8cb37f9f (patch)
tree590720646eeb0951717276b3883c5d6a8a83cf70 /vimrc
parent9af971c5fed495e425ca41049dd2b8130f4c2f27 (diff)
downloaddotvim-6036b8b3bc9383adb5528bf172974cde8cb37f9f.tar.bz2
vimrc: add <leader>tx to delete current buffer & go to previous tab
It was getting annoying having to keep typing "gT" after every ":bd".
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 7f7ce1d..7d3e03f 100644
--- a/vimrc
+++ b/vimrc
@@ -173,6 +173,11 @@
" * Add <leader>sb to set scrollbinding so I can quickly set two windows
" to scroll together
"
+" 2014.05.30:
+" * Add <leader>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 <leader>/ :nohlsearch<cr>
" Tabs
nnoremap <leader>tn :tabnew<cr>
+nnoremap <leader>tx :bdelete \| normal! gT<cr>
" Quickfix
nnoremap ]q :cnext<cr>