tmux-resurrect/docs/restoring_vim_and_neovim_se...

20 lines
628 B
Markdown
Raw Permalink Normal View History

2015-08-10 18:51:39 +02:00
# Restoring vim and neovim sessions
- save vim/neovim sessions. I recommend
[tpope/vim-obsession](https://github.com/tpope/vim-obsession) (as almost every
plugin, it works for both vim and neovim).
- in `.tmux.conf`:
# for vim
set -g @resurrect-strategy-vim 'session'
# for neovim
set -g @resurrect-strategy-nvim 'session'
2016-05-16 23:28:54 +02:00
`tmux-resurrect` will now restore vim and neovim sessions if `Session.vim` file
2015-08-10 18:51:39 +02:00
is present.
2021-02-01 16:34:21 +01:00
> If you're using the vim binary provided by MacVim.app then you'll need to set `@resurrect-processes`, for example:
> ```
> set -g @resurrect-processes '~Vim -> vim'
> ```