diff --git a/.tmux.conf b/.tmux.conf index c670f9c..61e0194 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -27,57 +27,20 @@ set -g default-terminal screen-256color set -g status-keys vi set -g history-limit 10000 -# redraw status line every 10s -set -g status-interval 10 - # Clear scrollback buffer bind l clear-history # Custom key bindings to split the window # split it using modifier key + v or s -bind-key h split-window -h -bind-key v split-window -v +#bind-key h split-window -h +#bind-key v split-window -v # split it w/o modifier key using - or _ -bind - split-window -v -bind _ split-window -h - -# Reload tmux config -bind r source-file ~/.tmux.conf +#bind - split-window -v +#bind _ split-window -h # No delay for escape key press set -sg escape-time 0 -# PANE SWITCHING -# Bind-key + arrow to switch panes -# Switch Panes with Meta (i.e. Alt) HJKL -bind-key Left select-pane -L -bind-key Right select-pane -R -bind-key Up select-pane -U -bind-key Down select-pane -D -bind -n M-j select-pane -L -bind -n M-k select-pane -R -bind -n M-h select-pane -U -bind -n M-l select-pane -D - -# PANE CREATION -# Bind-key + Control arrow to create panes -# Create Panes with Control HJKL -bind-key C-Down split-window -v -bind-key C-Up split-window -v -b -bind-key C-Right split-window -h -bind-key C-Left split-window -h -b -bind -n C-l split-window -v -bind -n C-h split-window -v -b -bind -n C-k split-window -h -bind -n C-j split-window -h -b - -# PANE SIZING -# Resize Panes with Meta Shift HJKL -bind -n M-J resize-pane -L 2 -bind -n M-K resize-pane -R 2 -bind -n M-L resize-pane -D 2 -bind -n M-H resize-pane -U 2 - # WINDOW SWITCHING # Easier window navigation bind -n C-Tab next-window @@ -85,11 +48,6 @@ bind -n C-S-Tab previous-window #bind -n C-S-Left previous-window #bind -n C-S-Right next-window -# WINDOW ORGANIZATION -# Ctrl + Alt + Left/Right to move windows -bind-key -n C-M-Left swap-window -t -1 -bind-key -n C-M-Right swap-window -t +1 - # Copy to cygwin clipboard bind -n C-t run "tmux save-buffer - > /dev/clipboard" @@ -98,7 +56,14 @@ bind -n C-t run "tmux save-buffer - > /dev/clipboard" bind-key x kill-pane bind-key C-x kill-window -# Plugins +# Plugins -- TO INITALLY SET UP THE PLUGINS PRESS bind-key I (that is shift i) +# -- a message will appear after a second saying succes #run-shell ~/.tmux-plugins/resurrect/resurrect.tmux +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' +set -g @plugin 'tmux-plugins/tmux-pain-control' set -g @plugin 'jimeh/tmux-themepack' set -g @themepack 'powerline/default/blue' + +run -b '~/.tmux/plugins/tpm/tpm' +