save session in Vim

Depending on my task in Vim I have several tabs open.

How can I save different sessions for later use?

Last updated:10/30/2014 12:52:31 AM

1 Answers

Anonymous User
Anonymous User

You want something like

:mksession ~/mysession.vim

Then later you can source that vim file and you'll have your old session back:

:source ~/mysession.vim

or open vim with the -S option:

$ vim -S ~/mysession.vim