diff --git a/.tmux.conf b/.tmux.conf index 4ce2eb3..90d37c0 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -8,6 +8,14 @@ # appropriate tmux key bindings. Note that for many key bindings there is no # tmux analogue. +# prefix is CTRL-B and CTRL-X +set -g prefix C-b +set -g prefix2 C-x + +# enable CTRL-B and CTRL-X under other programs (like vim) - you'll have to press twice le combination to have the old one +bind C-b send-prefix +bind C-x send-prefix + # split windows like vim # vim's definition of a horizontal/vertical split is reversed from tmux's bind s split-window -v @@ -111,3 +119,11 @@ set -g focus-events on bind c new-window -c "#{pane_current_path}" bind r source-file ~/.tmux.conf + +# number windows starting from 1 - handy for direct access +set -g base-index 1 + +# Configure tmux buffer to clipbard +#setw -g mode-keys vi +#bind-key -T copy-mode-vi v send-keys -X begin-selection +#bind -T copy-mode-vi y send-keys -X copy-pipe 'xclip -in -selection clipboard'