For questions about vim's sessions feature, which persist an editing session to disk for recovery later.

Introduction

From vim's :help session:

A Session keeps the Views for all windows, plus the global settings.  You can
save a Session and when you restore it later the window layout looks the same.
You can use a Session to quickly switch between different projects,
automatically loading the files you were last working on in that project.

Views and Sessions are a nice addition to viminfo-files, which are used to
remember information for all Views and Sessions together |viminfo-file|.

You can quickly start editing with a previously saved View or Session with the
|-S| argument: >
    vim -S Session.vim

You can create sessions with mksession, and they are controlled by 'sessionopts'.

Use this tag if...

  • you have questions about vim's sessions

Do not use this tag if...

  • you have questions relating to the English usage of the word "session"
    1. a meeting of a deliberative or judicial body to conduct its business
    2. a period devoted to a particular activity: gym is followed by a training session.
    3. the governing body of a Presbyterian Church.

    (source: Apple Dictionary.app)

  • you have questions other kinds of sessions (such as tmux(1))