On Mon, May 14, 2012 at 01:01:17PM +0100, Paul wrote:
> When I close a tab, I'd like vim to take me back to the last tab that I was 
> in, rather than the next in line. For example:
>
> I have several tabs open:
>
> [1] [2] [3]
>
> I'm in tab [1]. I open a new tab, [a], which opens after tab [1]:
>
> [1] [a] [2] [3]
>
> I'm now in my new tab, [a]. I close it:
>
> [1] [2] [3]
>
> I'm now in tab [2], but I wanted to be put in tab [1].
>
> Is it possible?

I have this in my vimrc:
nnoremap <leader>td :tabclose<cr>gT

HTH,
Bert
>
> -- 
>
> .
>
> -- 
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to