Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (46 sloc) 1.64 KB
# Set prefix to Ctrl-Space
unbind C-b
set -g prefix C-Space
bind Space send-prefix
# Set a Ctrl-b shortcut for reloading your tmux config
bind r source-file ~/.tmux.conf
set-window-option -g mode-keys vi
# Remap window navigation to vim
unbind-key j
bind-key j select-pane -D
unbind-key k
bind-key k select-pane -U
unbind-key h
bind-key h select-pane -L
unbind-key l
bind-key l select-pane -R
# Enable/disable logging to a file
bind-key H pipe-pane -o "exec cat >>$HOME/'#W-tmux.log'" \; display-message 'Toggled logging to $HOME/#W-tmux.log'
# Make escape key more responsive
set -s escape-time 0
# Set terminal type so solarized color theme works in (n)vim
set -g default-terminal "screen-256color"
# Set inactive/active window styles
set -g window-style 'fg=colour247,bg=colour236'
set -g window-active-style 'fg=colour250,bg=black'
# Set the pane border colors
set -g pane-border-fg colour250
set -g pane-border-bg colour236
set -g pane-active-border-fg colour250
set -g pane-active-border-bg colour250
# Useful for splitting panes easily
bind | split-window -h
bind - split-window -v
# git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# Tmux Plugin Manager
# Required plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# Selected plugins
set -g @plugin 'Morantron/tmux-fingers' # prefix + F to enumerate yankable things
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# Hit prefix + I to fetch and source plugins
# Could enable scrolling with the mouse wheel
# but not going to as screws up copying to/from the clipboard
#setw -g mouse on