Sessions should do what you want. You can look at :help session for more
information, but this is basically what I do:
1. Open the files that you want, in tabs (I typically have three tabs with
source files, a tab with my todo.otl file, another with some init files and
another with my .vimrc).
2. Type :mksession ~/work_session.vim
The file work_session.vim now contains the state of vim as it is. You can now
quit that instance of vim, start up another and do
:source ~/work_session.vim
Or alternatively start vim with an argument:
Vim -S ~/work_session.vim
Presto, your "workspace" is there! If you want to add or remove files, just
create a new session file with mksession, or replace the existing one.
I generally always have my vim session open, but whenever I need to reboot (I'm
on Windows, so that is pretty often), I do a :mksession and then when I get
back I just :source the file and I'm back where I left off!
Hope that helps,
Max
> -----Original Message-----
> From: Eric Leenman [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 06, 2007 10:37 AM
> To: [email protected]
> Subject: Workspace concept ala TextPad
>
> Hi,
>
> Is it possible to load a set of files when you start gvim? (Like in
> Textpad,
> for those who know this editor)
> For example:
> I have a project containing 20 files.
> I frequently uses 5 of them to modify and debug them.
> Can you give a command to vim like: "Load workspace projectX", which
> then
> load the 5 defined files?
> And when needed add or delete files from this workspace?
>
> Rgds,
> Eric
>
> _________________________________________________________________
> Search for grocery stores. Find gratitude. Turn a simple search into
> something more.
> http://click4thecause.live.com/search/charity/default.aspx?source=hmemt
> agline_gratitude&FORM=WLMTAG