Update tmux keybindings
This commit is contained in:
+14
-10
@@ -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
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user