Friday, November 1, 2013

Move to previous tab after quit

When I quit a window with multiple tabs open, I am placed in the tab
to the right. This is an issue because when I open a new tab, that is
opened in the tab to the right which, if I'm working on different
projects in one session, makes things out of order. I like tabs to be
open to the right of where I am but would like to move to the tab to
the left when closing a window. How can I do this?

I tried this:
" Move to previous tab when quitting
cmap q q<CR>gT

Which (besides not working) has two drawbacks: if I close a split, I
don't want to switch tabs and if I'm on the first tab, I don't want to
cycle to the far right one.

--
--
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 because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: