LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Vim problem with tabs and session (https://www.linuxquestions.org/questions/linux-software-2/vim-problem-with-tabs-and-session-690423/)

nicostcado 12-13-2008 09:40 PM

Vim problem with tabs and session
 
Hello,
I use vim version 7.1.285
I like to use session and I discover you can use tabs in vim 7 like you can do in gvim.
But now when I save my session (with some tabs open) and open again this session, my tabs are not on the windows.
They are in the buffer but I would like to have its immediatly on the screen.
That was working ok before but I was looking for a plugin to manage my sessions,
I tried some different and now I have this problem.
I don't have this problem when I split a window. I tried to change all my vimrc with no effect
I don't no where to look for, it's not my vimrc which is wrong, I didn't find any answer an the web.

If anybody have a idear, I will be happy...

Thanks for your time,
Nico

nicostcado 12-14-2008 11:03 AM

I find the solution, so I give it here if somebody need :
by default the session option (what will be preserved) are "blank,buffers,curdir,folds,help,options,winsize"
You can define this with set sessionoptions=blank,buffers,[etc]
In my help there are no more option than the default one, but this help is not exactly for vim 7, there is another option : tabpages !!!
You only have to put this "set sessionoptions=blank,buffers,curdir,folds,help,options,resize,tabpages,winsize" in your vimrc to add this option.
YES I'VE GOT IT !!!
bye,

Nico


All times are GMT -5. The time now is 09:32 AM.