mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-01-07 22:11:09 +08:00
1.4 KiB
1.4 KiB
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:
via: https://jvns.ca/blog/2017/09/10/vim-sessions/
作者:Julia Evans 译者:译者ID 校对:校对者ID