Update tmux keybindings

This commit is contained in:
Andrew Miner
2018-06-19 14:01:46 -06:00
parent 16dc6a46b6
commit 880663c1b1
2 changed files with 15 additions and 11 deletions
+14 -10
View File
@@ -1,6 +1,5 @@
# Basic Setup ########################################################################################################## # Basic Setup ##########################################################################################################
set -g default-terminal "screen-256color"
setw -g mode-keys vi setw -g mode-keys vi
set -g mouse on set -g mouse on
@@ -13,21 +12,22 @@ bind C-f send-prefix
# Reload config file with prefix-r # Reload config file with prefix-r
unbind r unbind r
bind r source-file ~/.tmux.conf bind-key r source-file ~/.tmux.conf
# Add keybindings for pane movement # Add keybindings for pane movement
bind-key -r -T prefix C-k select-pane -U unbind-key C-l
bind-key -r -T prefix C-j select-pane -D
bind-key -r -T prefix C-h select-pane -L bind-key -r C-k select-pane -U
bind-key -r -T prefix C-l select-pane -R bind-key -r C-j select-pane -D
unbind-key -T prefix l bind-key -r C-h select-pane -L
bind-key -r C-l select-pane -R
# Bindings for history management # 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 # Bindings for splitting
bind-key -r -T prefix | split-window -h bind-key | split-window -h
bind-key -r -T prefix - split-window -v bind-key - split-window -v
unbind '"' unbind '"'
unbind % unbind %
@@ -35,6 +35,10 @@ unbind %
bind-key -T copy-mode-vi 'v' send -X begin-selection 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" 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 ####################################################################################################### # Visual Styling #######################################################################################################
# panes # panes
+1 -1
View File
@@ -140,7 +140,7 @@ map <F1> :NERDTreeToggle<CR>
map <F2> :NERDTreeFind<CR> map <F2> :NERDTreeFind<CR>
map <F3> :'a,.!sort<CR> map <F3> :'a,.!sort<CR>
map <F4> :IndentGuidesToggle<CR> map <F4> :IndentGuidesToggle<CR>
map <F5> :e<CR> map <F5> :e!<CR>
map <F6> :set hlsearch!<CR> map <F6> :set hlsearch!<CR>
map <F7> :cp<CR> map <F7> :cp<CR>
map <F8> :copen<CR> map <F8> :copen<CR>