Re: clone a vim session into a new tab

2007-03-14 Thread Bram Moolenaar

Andy Wokula wrote:

  Ok tabpages are included in the session per default.  Try
  :set sessionoptions-=tabpages
  first.
 
  
  Awesome! Thanks a lot!
  
  :help 'sessionoptions'
 
  
  The help is a bit confusing. It says
  
  There is no option to include tab pages yet, only the current tab 
  page
  is stored in the session. |tab-page|
  
  But in reality, it stores all the tab pages. Is this a bug in the
  documentation? or am I misreading something?
  
  raju
 
 Confuses me too.  Looks like some forgotten beta version note.

Right, I'll remove it.

-- 
MORTICIAN:Bring out your dead!
  [clang]
  Bring out your dead!
  [clang]
  Bring out your dead!
CUSTOMER: Here's one -- nine pence.
DEAD PERSON:  I'm not dead!
  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\download, build and distribute -- http://www.A-A-P.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///


Re: clone a vim session into a new tab

2007-03-13 Thread Andy Wokula

Kamaraju S Kusumanchi schrieb:

Let's say I opened a 6 files in a 3X2 grid inside vim. Now I want to clone
this and have all the files at the same position, same window sizes etc.,
and put it into a new tab under the same vim session. Is there a command to
do this?

commands like tabe etc., open only a single file. But I want to open about 6
files and have the correct window sizes etc.,

Any ideas?

raju


Simple way (recommended or not, at least quick) with sessions:

:mks
 use ! to overwrite existing Session.vim
:tabnew
:so Session.vim

Just guessed it might work and it works.
Now I think sessions don't include tabpages.

Andy

--
EOM



___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de


Re: clone a vim session into a new tab

2007-03-13 Thread Kamaraju S Kusumanchi
Andy Wokula wrote:
 
 Simple way (recommended or not, at least quick) with sessions:
 
 :mks
  use ! to overwrite existing Session.vim
 :tabnew
 :so Session.vim
 
 Just guessed it might work and it works.
 Now I think sessions don't include tabpages.
 

This works although I use tabe instead of tabn. But there is a small
problem. If I have three already existing tabs, and if I want to clone only
the second tab into a new tab then it does not work. Any other suggestions?

thanks
raju

-- 
Kamaraju S Kusumanchi
http://www.people.cornell.edu/pages/kk288/
http://malayamaarutham.blogspot.com/



Re: clone a vim session into a new tab

2007-03-13 Thread Andy Wokula

Kamaraju S Kusumanchi schrieb:

Andy Wokula wrote:

Simple way (recommended or not, at least quick) with sessions:

:mks
 use ! to overwrite existing Session.vim
:tabnew
:so Session.vim

Just guessed it might work and it works.
Now I think sessions don't include tabpages.



This works although I use tabe instead of tabn. But there is a small
problem. If I have three already existing tabs, and if I want to clone only
the second tab into a new tab then it does not work. Any other suggestions?

thanks
raju


Ok tabpages are included in the session per default.  Try
:set sessionoptions-=tabpages
first.

:help 'sessionoptions'

Then use again
:mks
 use ! to overwrite existing Session.vim
:tabnew
:so Session.vim 


Andy

--
EOM





___ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de


Re: clone a vim session into a new tab

2007-03-13 Thread Kamaraju S Kusumanchi
Andy Wokula wrote:

 Ok tabpages are included in the session per default.  Try
 :set sessionoptions-=tabpages
 first.
 

Awesome! Thanks a lot!

 :help 'sessionoptions'
 

The help is a bit confusing. It says

There is no option to include tab pages yet, only the current tab page
is stored in the session. |tab-page|

But in reality, it stores all the tab pages. Is this a bug in the
documentation? or am I misreading something?

raju

-- 
Kamaraju S Kusumanchi
http://www.people.cornell.edu/pages/kk288/
http://malayamaarutham.blogspot.com/



Re: clone a vim session into a new tab

2007-03-13 Thread Andy Wokula

Kamaraju S Kusumanchi schrieb:

Andy Wokula wrote:


Ok tabpages are included in the session per default.  Try
:set sessionoptions-=tabpages
first.



Awesome! Thanks a lot!


:help 'sessionoptions'



The help is a bit confusing. It says

There is no option to include tab pages yet, only the current tab page
is stored in the session. |tab-page|

But in reality, it stores all the tab pages. Is this a bug in the
documentation? or am I misreading something?

raju


Confuses me too.  Looks like some forgotten beta version note.

Andy

--
EOM


___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de