From 0ea91c28e27a317d0aa64d8ce1ff05dc34af00c1 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Thu, 26 Jun 2014 19:06:20 +0400 Subject: [PATCH] .tmux.conf updated --- .tmux.conf | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 57088c0..bf718b2 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1,6 +1,14 @@ # Vim keys + +# dirty hack for old tmux which doesn't support -c option +bind-key c new-window bind s split-window -v bind v split-window -h +# save current path for >=tmux-1.9a +bind-key c new-window -c "#{pane_current_path}" +bind s split-window -v -c "#{pane_current_path}" +bind v split-window -h -c "#{pane_current_path}" + bind h select-pane -L bind j select-pane -D bind k select-pane -U @@ -23,8 +31,8 @@ bind-key R respawn-window #set set-remain-on-exit on # # # create the windows we really want -neww -n vim -splitw -v -p 20 -t 0 +# neww -n vim +# splitw -v -p 20 -t 0 # # # for future windows, revert r-o-e to global value #set -u set-remain-on-exit