Changed pane swithing keybinds to something more vim-like and started useing vim

This commit is contained in:
Dreaded_X 2014-08-28 00:15:46 +02:00
parent 45e50fb744
commit def1a9a238
3 changed files with 10 additions and 12 deletions

View File

@ -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

View File

@ -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

View File

@ -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