Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

恢复vim之后显示不完全需要刷新一下 #2

Open
roachsinai opened this issue Dec 31, 2018 · 3 comments
Open

恢复vim之后显示不完全需要刷新一下 #2

roachsinai opened this issue Dec 31, 2018 · 3 comments

Comments

@roachsinai
Copy link

您好,按照您的文章Tmux使用手册我进行了一下配置,并在vim中安装了插件。


# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @resurrect-strategy-vim 'session' # for vim
set -g @resurrect-capture-pane-contents 'on' # 开启恢复面板内容功能
set -g @resurrect-save-shell-history 'on'

# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin '[email protected]/user/plugin'
# set -g @plugin '[email protected]/user/plugin'

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'

功能我觉得很满意,只是恢复vim打开的文件之后,显示如下图,有些地方一行代码只显示一个字母

screenshot_20190101_025814

然后vim,Normal模式下按G光标移动到底部内容就全部刷新出来了。

screenshot_20190101_030021

@roachsinai
Copy link
Author

screenshot_20190101_031017

然后如果tmux中有一个shell,没有打开任何程序,下次恢复是上方就会有一个%如上图所示。

非常感谢您的tmux文章,现在的功能我也很满意。只是想知道我这个是哪里的问题,看能不能配置的更完美一些。

  • OS: Manjaro, KDE
  • Terminal: konsole
  • Shell:zsh + oh-my-zsh

@Louiszhai
Copy link
Owner

你好,我也没仔细研究过tmux恢复功能的原理,目前本地tmux是开机脚本自动启动的,相当于每次重启机器都是一次新的运行。后续如果遇到了类似的问题,再回复下。如果你找到了解决方案可以分享下,感谢。

@roachsinai
Copy link
Author

好的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants