Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 628 Bytes

restoring_vim_and_neovim_sessions.md

File metadata and controls

19 lines (15 loc) · 628 Bytes

Restoring vim and neovim sessions

  • save vim/neovim sessions. I recommend 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'
    

tmux-resurrect will now restore vim and neovim sessions if Session.vim file is present.

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'