diff options
author | Teddy Wing | 2014-10-30 12:34:25 -0400 |
---|---|---|
committer | Teddy Wing | 2014-10-30 12:34:25 -0400 |
commit | 91fb3f281be0e45ef91b9458e6312af1183c3e3d (patch) | |
tree | 0b33a5e0a0211d44816a2a556c71fc8208deef8b /vimrc | |
parent | 0c0b322219cc600c1a6609641d8f6e763d21fa27 (diff) | |
download | dotvim-91fb3f281be0e45ef91b9458e6312af1183c3e3d.tar.bz2 |
vimrc: Add <leader>tq mapping
<leader>tq quits a window and goes to the previous tab. I was getting
tired of doing `:q` -> `gT`.
I know I have <leader>td but I've been working on some projects lately
where I don't want to delete the buffers from my session.
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -250,6 +250,10 @@ " 2014.09.10: " * Add <leader>r mapping to reload the current file. " +" 2014.10.30: +" * Add <leader>tq to close a window and go to the previous tab. Works +" like <leader>td but doesn't delete the buffer. +" " Pathogen @@ -507,6 +511,9 @@ nnoremap <leader>tn :tabnew<cr> " Delete buffer and go to previous tab nnoremap <leader>td :bdelete \| normal! gT<cr> +" Quit buffer and go to previous tab +nnoremap <leader>tq :quit \| normal! gT<cr> + " Go to last viewed tab " http://stackoverflow.com/a/2120168 let g:last_viewed_tab = 1 |