Julia Evans

Cool vim feature: sessions!

Yesterday I learned about an awesome vim feature while working on my vimrc! (to add fzf & ripgrep search plugins mainly). It’s a builtin feature, no fancy plugins needed.

So I drew a comic about it.

Basically you can save all your open files and current state with

:mksession ~/.vim/sessions/foo.vim

and then later restore it with either :source ~/.vim/sessions/foo.vim or vim -S ~/.vim/sessions/foo.vim. Super cool!

Some vim plugins that add extra features to vim sessions:

Here’s the comic:

How I spent my time at the Recurse Center Data structure: the treap!