:tabdo -- get back to original tab

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

:tabdo -- get back to original tab

'Suresh Govindachar' via vim_use
Hello,

Any suggestions for getting back to the starting tab after issuing the
following command?:

       :tabdo windo set nocursorbind

Thanks,

--Suresh

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: :tabdo -- get back to original tab

Tony Mechelynck
On Mon, Apr 10, 2017 at 3:06 AM, 'Suresh Govindachar' via vim_use
<[hidden email]> wrote:

> Hello,
>
> Any suggestions for getting back to the starting tab after issuing the
> following command?:
>
>       :tabdo windo set nocursorbind
>
> Thanks,
>
> --Suresh

:let save_tab = tabpagenr()
:let save_win = winnr()
:tabdo windo set nocursorbind
:exe "tabnext" save_tab
:exe save_win "wincmd w"

See
    :help tabpagenr()
    :help winnr()
    :help :tabnext
    :help :wincmd
    :help CTRL-W_w

Of course, this would not have worked if your tabdo command could have
opened or closed tabs and/or windows.

Best regards,
Tony.

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Loading...