aboutsummaryrefslogtreecommitdiff
path: root/tmux.conf
diff options
context:
space:
mode:
authororeodave <aryadevchavali1@gmail.com>2019-07-23 23:47:15 +0100
committeroreodave <aryadevchavali1@gmail.com>2019-07-23 23:47:48 +0100
commit80655fb1f066ece7a1d820ff542cf7413e838f1b (patch)
treef2e1cbee2695c422ebd39059dafb45510cbc75bf /tmux.conf
parent5b5d905824ad8ccf13f2a28cf8ef36f3e4b90c64 (diff)
downloaddotfiles-80655fb1f066ece7a1d820ff542cf7413e838f1b.tar.gz
dotfiles-80655fb1f066ece7a1d820ff542cf7413e838f1b.tar.bz2
dotfiles-80655fb1f066ece7a1d820ff542cf7413e838f1b.zip
+tmux vim bindings for manipulation of windows
Diffstat (limited to 'tmux.conf')
-rw-r--r--tmux.conf7
1 files changed, 7 insertions, 0 deletions
diff --git a/tmux.conf b/tmux.conf
index 8106833..7c2d41e 100644
--- a/tmux.conf
+++ b/tmux.conf
@@ -1,6 +1,13 @@
set -g base-index 1
set-option -g prefix C-a
+set-window-option -g mode-keys vi
set -g @themepack 'powerline/block/blue'
+bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L"
+bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
+bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
+bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"
+bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l"
+
# List of plugins