Thursday, March 18, 2021

Re: tabedit and closing

Does that require using the F12 key or does it somehow also work when just using :wq  ?

On Thursday, March 18, 2021 at 10:51:20 AM UTC-4 BPJ wrote:
Den tors 18 mars 2021 15:03rwmit...@gmail.com <rwmit...@gmail.com> skrev:
I have multiple tabs open using :tabedit
I'm in a tab other than the right most.
:tabedit  opens a new tab to the right of the current tab
:q closes that tab but also advances the current tab again to the right.

Is there a setting to instead advance the current tab to the left?
I'd prefer to return to the previous tab, where I had just run :tabedit

I have this in .vimrc:

:com Tc tabclose | tabprevious
nnor <F12>t :Tc<cr>

Works like a charm!



--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/7354d4ed-085b-47ae-b48e-13cb2ae8e0een%40googlegroups.com.

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/9abfdd96-6835-469a-af02-117471943d00n%40googlegroups.com.

No comments: