In file ".tmux.conf":
set-option -g default-terminal "screen-256color"
set-option -g mouse on
set-option -g history-limit 102400
set-option -g base-index 1
set-option -g renumber-windows on
bind-key '"' split-window -v -c '#{pane_current_path}'
bind-key % split-window -h -c '#{pane_current_path}'
bind-key c new-window -c '#{pane_current_path}'
set-option -g mouse on
set-option -g history-limit 102400
set-option -g base-index 1
set-option -g renumber-windows on
bind-key '"' split-window -v -c '#{pane_current_path}'
bind-key % split-window -h -c '#{pane_current_path}'
bind-key c new-window -c '#{pane_current_path}'
In file ".vimrc":
set bg=dark (避免vim的顯示顏色在開啟tmux時有差異)