obsession.vim (GitHub: tpope / vim-obsession, License: Vim) by Tim Pope provides some sugar for working with Vim's session files. It automatically calls
:mksession before exiting, and whenever the layout changes.
To start using it, type
:Obsess with an optional file or path. Session files can then be loaded with
vim -S or
Once several selections have been made, edits can be applied to each region. This is done by using the mappings documented in
:help multiedit-mappings. Regions can be added, cleared, and restored, and then editing is started by issuing
:Multiedit! (change mode).