Vim Sessions

Aug 11, 2023

Related to:: Vim

Create a session

:mksession ~/mysession.vim

Restore session

:source ~/mysession.vim

Or open vim with the session

$ vim -S ~/mysession.vim

What is Saved in Sessions?

To know what you are saving in the sessions

set sessionoptions
set ssop

sessionoptions=blank,buffers,curdir,folds,help,tabpages,winsize,terminal

To remove something

set ssop-=options    " do not store global and local values in a session
set ssop-=folds      " do not store folds

Further Research

Check how to autosave a session (with the name it has loaded)

Graph View