From 880663c1b1af6e38b8ec5e1ce56383ec933efd61 Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Tue, 19 Jun 2018 14:01:46 -0600 Subject: [PATCH] Update tmux keybindings --- home/.tmux.conf | 24 ++++++++++++++---------- home/.vimrc | 2 +- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/home/.tmux.conf b/home/.tmux.conf index 7234363..110d24d 100644 --- a/home/.tmux.conf +++ b/home/.tmux.conf @@ -1,6 +1,5 @@ # Basic Setup ########################################################################################################## -set -g default-terminal "screen-256color" setw -g mode-keys vi set -g mouse on @@ -13,21 +12,22 @@ bind C-f send-prefix # Reload config file with prefix-r unbind r -bind r source-file ~/.tmux.conf +bind-key r source-file ~/.tmux.conf # Add keybindings for pane movement -bind-key -r -T prefix C-k select-pane -U -bind-key -r -T prefix C-j select-pane -D -bind-key -r -T prefix C-h select-pane -L -bind-key -r -T prefix C-l select-pane -R -unbind-key -T prefix l +unbind-key C-l + +bind-key -r C-k select-pane -U +bind-key -r C-j select-pane -D +bind-key -r C-h select-pane -L +bind-key -r C-l select-pane -R # Bindings for history management -bind-key -r -T prefix BSpace send-keys C-l \; clear-history +bind-key BSpace send-keys C-l \; clear-history # Bindings for splitting -bind-key -r -T prefix | split-window -h -bind-key -r -T prefix - split-window -v +bind-key | split-window -h +bind-key - split-window -v unbind '"' unbind % @@ -35,6 +35,10 @@ unbind % bind-key -T copy-mode-vi 'v' send -X begin-selection bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" +# Custom Resizing +bind-key v resize-pane -x 126 +bind-key V resize-pane -x 253 + # Visual Styling ####################################################################################################### # panes diff --git a/home/.vimrc b/home/.vimrc index 9afcf84..8631334 100644 --- a/home/.vimrc +++ b/home/.vimrc @@ -140,7 +140,7 @@ map :NERDTreeToggle map :NERDTreeFind map :'a,.!sort map :IndentGuidesToggle -map :e +map :e! map :set hlsearch! map :cp map :copen