tmux-plugins / tmux-resurrect

Persists tmux environment across system restarts.
MIT License
11.35k stars 423 forks source link

vim tabe does not restore, text has large gaps #326

Open davehouser1 opened 4 years ago

davehouser1 commented 4 years ago

Problem: When tmux-resurrect runs my active vim sessions include large gaps with no numbering, and tabe tabs do not appear / "g-t" does not switch between tabs. Looks like the vim sessions are not rendered properly.

System: Ubuntu 18.04.3, Gnome shell 3.28.4, gnome-terminal 0.52.2, bash 4.4.20(1), vim 8.0 1-1453

Plugins used: tmux-resurrect, vim-sessions, vim-obsession, tmux-continuum

Trouble shooting:

Temp work around: Need to quite all files in panes using vim in tmux-resurrect instance then run vim again for full functionality.

Configuration files:

~/.tmux.conf:

Install Plugins

set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'tmux-plugins/tmux-continuum'

Plugin: tmux-resurrect

set -g @resurrect-processes ':all:' set -g @resurrect-strategy-vim 'session' set -g @resurrect-capture-pane-contents 'on'

Plugin: tmux-continuum

set -g @continuum-save-interval '1' set -g @continuum-restore 'on'

Initalize TMUX plugin manager

run '~/.tmux/plugins/tpm/tpm'

~/.vimrc "Begin Vundle Components Section set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'jiangmiao/auto-pairs' Plugin 'xolox/vim-session' Plugin 'xolox/vim-misc' Plugin 'tpope/vim-obsession' call vundle#end() filetype plugin indent on "End Vundle Components Section "Turn off auto reload for vim-session plugin let g:session_autosave_periodic = 1 let g:session_autoload = 'yes' let g:session_autosave = 'yes' let g:session_autosave_to = 'default' let g:session_verbose_messages = 0 let g:session_default_to_last = 1

~/.bashrc

History control for tmux resurrect

export HISTCONTROL=ignoredups:erasedups shopt -s histappend export PROMPT_COMMAND="history -w; history -a; history -c; history -r; $PROMPT_COMMAND"

andreyizrailev commented 3 years ago

I have the same problem.

MortenStabenau commented 3 years ago

+1