David Z
David Z

Reputation: 7061

Start 'tmux' before Vim. The X Window system is required to run R in an external terminal

I am using a previous version of Vim-R-Plugin and pretty comfortable about its settings. Recently I upgraded the Linux system and got message never before "Start 'tmux' before Vim. The X Window system is required to run R in an external terminal.". The issue is, if I start tmux manually, the vim background were also changed weirdly and further ,rc will start a R console in a split window rather than a new window. Does somebody know the reasons and how to fix it?

Upvotes: 0

Views: 87

Answers (1)

P4C
P4C

Reputation: 557

This is due to styles and handling of tmux 'emulated terminal'. At first try to simply run

tmux -2

If it does not help try add in ~/.tmux.conf:

set -g default-terminal "screen-256color"

Upvotes: 1

Related Questions