Cool vim feature: sessions!
source link: http://jvns.ca/blog/2017/09/10/vim-sessions/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
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:
Want a weekly digest of this blog?
Data structure: the treap! How I spent my time at the Recurse Center
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK