Last Updated: September 09, 2019
·
671
· romulomachado

How to save and open sessions in Vim

Saving a session is simple:

:mksession mysession.vim

To open Vim with a saved session, call it with -S option:

$ vim -S mysession.vim