diff options
Diffstat (limited to 'tmux')
-rw-r--r-- | tmux/tmux.conf | 47 |
1 files changed, 23 insertions, 24 deletions
diff --git a/tmux/tmux.conf b/tmux/tmux.conf index b77c33c..81ed9b8 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -22,17 +22,15 @@ run '~/.tmux/plugins/tpm/tpm' set -g mouse on -#set-option -sa terminal-overrides ",xterm*:Tc" +unbind C-b +set -g prefix C-Space +bind C-Space send-prefix -#unbind C-b -#set -g prefix C-Space -#bind C-Space send-prefix - -## Vim style pane selection -#bind h select-pane -L -#bind j select-pane -D -#bind k select-pane -U -#bind l select-pane -R +# Vim style pane selection +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R ## Start windows and panes at 1, not 0 set -g base-index 1 @@ -40,27 +38,28 @@ set -g pane-base-index 1 set-window-option -g pane-base-index 1 set-option -g renumber-windows on -## Use Alt-arrow keys without prefix key to switch 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 +## Use Ctrl + arrow keys without prefix key to switch panes +bind -n C-Left select-pane -L +bind -n C-Right select-pane -R +bind -n C-Up select-pane -U +bind -n C-Down select-pane -D ## Shift arrow to switch windows bind -n S-Left previous-window bind -n S-Right next-window -## Shift Alt vim keys to switch windows -#bind -n M-H previous-window -#bind -n M-L next-window +## Shift Ctrl vim keys to switch windows +bind -n C-H previous-window +bind -n C-L next-window ## set vi-mode -#set-window-option -g mode-keys vi +set-window-option -g mode-keys vi ## keybindings -#bind-key -T copy-mode-vi v send-keys -X begin-selection -#bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle -#bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel +bind-key -T copy-mode-vi v send-keys -X begin-selection +bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle +bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel -#bind '"' split-window -v -c "#{pane_current_path}" -#bind % split-window -h -c "#{pane_current_path}" +## open new windows in the current directory +bind '"' split-window -v -c "#{pane_current_path}" +bind % split-window -h -c "#{pane_current_path}" |