Changed pane swithing keybinds to something more vim-like and started useing vim
This commit is contained in:
parent
45e50fb744
commit
def1a9a238
18
tmux.conf
18
tmux.conf
|
@ -2,13 +2,13 @@
|
||||||
|
|
||||||
#use ctrl-a instead of ctrl-b
|
#use ctrl-a instead of ctrl-b
|
||||||
unbind C-b
|
unbind C-b
|
||||||
set -g prefix C-q
|
set -g prefix C-a
|
||||||
|
|
||||||
#alt-arrow for switching panes
|
#alt-arrow for switching panes
|
||||||
bind -n M-Left select-pane -L
|
bind -n M-h select-pane -L
|
||||||
bind -n M-Right select-pane -R
|
bind -n M-l select-pane -R
|
||||||
bind -n M-Up select-pane -U
|
bind -n M-k select-pane -U
|
||||||
bind -n M-Down select-pane -D
|
bind -n M-j select-pane -D
|
||||||
|
|
||||||
#notify when something happens in another windows
|
#notify when something happens in another windows
|
||||||
setw -g monitor-activity on
|
setw -g monitor-activity on
|
||||||
|
@ -27,11 +27,9 @@ set -g set-titles-string '#T'
|
||||||
set-option -g set-titles on
|
set-option -g set-titles on
|
||||||
|
|
||||||
#setup tabs controls
|
#setup tabs controls
|
||||||
bind -n S-down new-window
|
bind -n C-j new-window
|
||||||
bind -n S-left prev
|
bind -n C-h prev
|
||||||
bind -n S-right next
|
bind -n C-l next
|
||||||
bind -n C-left swap-window -t -1
|
|
||||||
bind -n C-right swap-window -t +1
|
|
||||||
|
|
||||||
#enable aggressive-resize
|
#enable aggressive-resize
|
||||||
setw -g aggressive-resize on
|
setw -g aggressive-resize on
|
||||||
|
|
2
tmux/dev
2
tmux/dev
|
@ -8,7 +8,7 @@ split-window -h -c "$pane_current_path"
|
||||||
select-pane -t 0
|
select-pane -t 0
|
||||||
|
|
||||||
send-keys -t 0 'cd src' C-m
|
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 'cd src' C-m
|
||||||
send-keys -t 1 'clear' C-m
|
send-keys -t 1 'clear' C-m
|
||||||
|
|
2
tmux/git
2
tmux/git
|
@ -2,7 +2,7 @@ select-pane -t 0
|
||||||
split-window -h -p 21 -c "$pane_current_patch"
|
split-window -h -p 21 -c "$pane_current_patch"
|
||||||
select-pane -t 0
|
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 'tmux rename-window "Dev: $(basename)"' C-m
|
||||||
send-keys -t 1 'clear' C-m
|
send-keys -t 1 'clear' C-m
|
||||||
|
|
Loading…
Reference in New Issue
Block a user