Thursday, March 18, 2021

Re: tabedit and closing

Den tors 18 mars 2021 17:44rwmit...@gmail.com <rwmitchell@gmail.com> skrev:
On Thursday, March 18, 2021 at 12:14:43 PM UTC-4 Gary Johnson wrote:
On 2021-03-18,gmail.com wrote:
> On Thursday, March 18, 2021 at 10:51:20 AM UTC-4 BPJ wrote:
>
>> Den tors 18 mars 2021 15:...@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.

The following seems to work in both cases, though I haven't tested
it extensively.

:autocmd TabClosed * tabprevious

Regards,
Gary

Beautiful!
Just works.  No change to how I work. 

I quite like it too! I probably should take some time to learn about :autocmd!


( I appreciate all responses, but this is what I was looking for! )

I was also looking for this, without knowing it! :-)

--
--
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/91bae87a-35ca-41e2-817d-af2b29c44d71n%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/CADAJKhBzD1izq6buFWVvgaqX7iAtkQNvDRP%2BXtpN%3DdZ6M8vuYQ%40mail.gmail.com.

No comments: