Skip to content

Commit

Permalink
Replace ctrl bindings with meta bindings for tmux
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanMillerC authored Mar 24, 2020
1 parent 3fe3e5f commit 207cc8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions better-vim-tmux-resizer.tmux
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"

# Edit values if you use custom resize_count variables
tmux bind-key -n C-h if-shell "$is_vim" "send-keys C-h" "resize-pane -L 10"
tmux bind-key -n C-j if-shell "$is_vim" "send-keys C-j" "resize-pane -D 5"
tmux bind-key -n C-k if-shell "$is_vim" "send-keys C-k" "resize-pane -U 5"
tmux bind-key -n C-l if-shell "$is_vim" "send-keys C-l" "resize-pane -R 10"
tmux bind-key -n M-h if-shell "$is_vim" "send-keys M-h" "resize-pane -L 10"
tmux bind-key -n M-j if-shell "$is_vim" "send-keys M-j" "resize-pane -D 5"
tmux bind-key -n M-k if-shell "$is_vim" "send-keys M-k" "resize-pane -U 5"
tmux bind-key -n M-l if-shell "$is_vim" "send-keys M-l" "resize-pane -R 10"

tmux bind-key -T copy-mode-vi M-h resize-pane -L 10
tmux bind-key -T copy-mode-vi M-j resize-pane -D 5
Expand Down

0 comments on commit 207cc8e

Please sign in to comment.