# Use<C-a>instead of the default<C-b>as Tmux prefixset-option -g prefix C-aunbind-key C-bbind-key C-a send-prefix# Options enable mouse support in Tmuxset -g terminal-overrides 'xterm*:smcup@:rmcup@'set -g mode-mouse onset -g mouse-select-pane onset -g mouse-resize-pane on# Act more like vim:set-window-option -g mode-keys vibind h select-pane -Lbind j select-pane -Dbind k select-pane -Ubind l select-pane -Runbind pbind p paste-bufferbind -t vi-copy v begin-selectionbind -t vi-copy y copy-selection
Also, when browsing long commands in the command history at the R prompt with the up and down arrows or reverse-i-search, things get very messed up. The prompt disappears and in stead an empty line appears, the cursor and part of the previous long command currently being browsed is shown one line up, replacing whatever was shown there before. Continuing browsing will thus erase previous input and output. Issuing a command with RETURN will run it, but it is often hard to tell which command that is because text is so messed up. The cursor is also not indicating where you are editing a command, in stead you are editing invisible text one line below. After running a command, you get your normal R prompt back, but not the input/output that has been erased. The prompt will than typically be half way up your tmux pane whereas it first was at the bottom.
NOTE: the problem does not occur, it seems, when the tmux pane with R console is less than about 80 characters wide.