# This configuration should feel familiar to screen & vi users.

# split windows like vim
# vim's definition of a horizontal/vertical split is reversed from tmux's
bind s split-window -v
bind v split-window -h

# move around panes with hjkl, as one would in vim after pressing ctrl-w
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

# resize panes like vim
# Change integer to preferred resize step
bind < resize-pane -L 1
bind > resize-pane -R 1
bind - resize-pane -D 1
bind + resize-pane -U 1

# vi-style controls for copy mode
setw -g mode-keys vi

# Set the prefix to ^A.
unbind C-b
set -g prefix ^A
bind a send-prefix

# New window
unbind ^C
bind ^C new-window
unbind c
bind c new-window

# Detach
unbind ^D
bind ^D detach

# displays * 
unbind *
bind * list-clients

# Next window
unbind ^@
unbind ^N
unbind n
bind n next-window

# Previous window
unbind ^H
unbind ^P
unbind p
bind p previous-window

# Rename window
unbind A
bind A command-prompt "rename-window %%"

# Toggle last window
unbind ^A
bind ^A last-window

# windows ^W w 
unbind ^W
bind ^W list-windows
unbind w
bind w list-windows

# Kill window
unbind K
bind K confirm-before "kill-window"

# Refresh
unbind ^L
bind r refresh-client

# Choose window
unbind '"'
bind '"' choose-window

# :kB: focus up
unbind Tab
bind Tab select-pane -t:.+
unbind BTab
bind BTab select-pane -t:.-