SAVE SESSION IN VIM

Pravesh Singh

Total Post:101

Points:709
Posted by  Pravesh Singh
 854  View(s)
Ratings:
Rate this:

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

How can I save different sessions for later use?

  1. ezra heywood

    Post:145

    Points:1019
    Re: save session in Vim

    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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!