On 2021-03-18, [email protected] wrote:
> On Thursday, March 18, 2021 at 10:51:20 AM UTC-4 BPJ wrote:
>
>>    Den tors 18 mars 2021 15:[email protected] <[email protected]> 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!
>
> Does that require using the F12 key or does it somehow also work when just
> using :wq  ?

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

    :autocmd TabClosed * tabprevious

Regards,
Gary

-- 
-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20210318161409.GB13819%40phoenix.

Reply via email to