From def1a9a238a2e59f8b7e4aeb38d465e52409f9aa Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Thu, 28 Aug 2014 00:15:46 +0200 Subject: [PATCH] Changed pane swithing keybinds to something more vim-like and started useing vim --- tmux.conf | 18 ++++++++---------- tmux/dev | 2 +- tmux/git | 2 +- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/tmux.conf b/tmux.conf index 7ac5f60..ecbaff6 100644 --- a/tmux.conf +++ b/tmux.conf @@ -2,13 +2,13 @@ #use ctrl-a instead of ctrl-b unbind C-b -set -g prefix C-q +set -g prefix C-a #alt-arrow for switching panes -bind -n M-Left select-pane -L -bind -n M-Right select-pane -R -bind -n M-Up select-pane -U -bind -n M-Down select-pane -D +bind -n M-h select-pane -L +bind -n M-l select-pane -R +bind -n M-k select-pane -U +bind -n M-j select-pane -D #notify when something happens in another windows setw -g monitor-activity on @@ -27,11 +27,9 @@ set -g set-titles-string '#T' set-option -g set-titles on #setup tabs controls -bind -n S-down new-window -bind -n S-left prev -bind -n S-right next -bind -n C-left swap-window -t -1 -bind -n C-right swap-window -t +1 +bind -n C-j new-window +bind -n C-h prev +bind -n C-l next #enable aggressive-resize setw -g aggressive-resize on diff --git a/tmux/dev b/tmux/dev index e887995..2f11a47 100644 --- a/tmux/dev +++ b/tmux/dev @@ -8,7 +8,7 @@ split-window -h -c "$pane_current_path" select-pane -t 0 send-keys -t 0 'cd src' C-m -send-keys -t 0 'nano -F' C-m +send-keys -t 0 'vim' C-m send-keys -t 1 'cd src' C-m send-keys -t 1 'clear' C-m diff --git a/tmux/git b/tmux/git index 9e7003c..ae5b287 100644 --- a/tmux/git +++ b/tmux/git @@ -2,7 +2,7 @@ select-pane -t 0 split-window -h -p 21 -c "$pane_current_patch" select-pane -t 0 -send-keys -t 0 'nano -F' C-m +send-keys -t 0 'vim' C-m send-keys -t 1 'tmux rename-window "Dev: $(basename)"' C-m send-keys -t 1 'clear' C-m