Wednesday, July 11, 2012

Re: vim: session of "sessions"

On Wednesday, July 11, 2012 5:36:02 PM UTC-5, ping wrote:
> On 7/11/2012 5:52 PM, Ben Fritz wrote:
> > On Wednesday, July 11, 2012 2:25:58 PM UTC-5, ping wrote:
> >> //my thought and need help on:
> >> how do I aggregate all vim sessions in one vim instance, but still
> >> conveniently switch between them? any plugins(project plugin?) doing that?
> >>
> >
> > I'm not clear on exactly what you're doing already regarding tab pages, but you can tell Vim to store only the buffers/windows for the current tab page in a session. Then you can load one session per Vim tab and switch between them with gt/gT.
> >
> > :help 'sessionoptions'
> >
> > But maybe this workflow doesn't work for you.
> >
> hi Ben:
> this solution sounds interesting to me.
> can you provide a more specific steps?
> how to "isolate" tabs and make each tab load a seperate bunch of files
> (a session)?
> thanks in advance.
>
> regards
> ping

:help 'sessionoptions' says that by default, the value "tabpages" is included. Without this value, only the current tab page's windows are saved in the session file.

So, to have one session per tab page, you would :set sessionoptions-=tabpages, then :mksession as normal, and :source myniftysession.vim to load the session in a new tab page.

--
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

No comments: