Commit 30232086 authored by Deepak Nadig's avatar Deepak Nadig

Modified base configuration

parent 5156c9fe
......@@ -49,8 +49,8 @@ setw -g clock-mode-style 24
bind -n C-l send-keys C-l \; run 'tmux clear-history'
# activity
set -g monitor-activity on
set -g visual-activity off
#~ set -g monitor-activity on
#~ set -g visual-activity off
# -- navigation ----------------------------------------------------------------
......@@ -58,13 +58,11 @@ set -g visual-activity off
# find session
bind C-f command-prompt -p find-session 'switch-client -t %%'
# pane navigation
bind -r h select-pane -L # move left
bind -r j select-pane -D # move down
bind -r k select-pane -U # move up
bind -r l select-pane -R # move right
bind > swap-pane -D # swap current pane with the next one
bind < swap-pane -U # swap current pane with the previous one
# switch panes using Alt-arrow without prefix
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
# maximize current pane
bind + run 'cut -c3- ~/.tmux.conf | sh -s maximize_pane'
......@@ -75,12 +73,23 @@ bind -r J resize-pane -D 2
bind -r K resize-pane -U 2
bind -r L resize-pane -R 2
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# Enable mouse mode (tmux 2.1 and above)
set -g set-clipboard off
set -g mouse-utf8 off
set -g mouse on
# window navigation
unbind n
unbind p
bind -r C-h previous-window # select previous window
bind -r C-l next-window # select next window
bind Tab last-window # move to last active window
#unbind n
#unbind p
#bind -r C-h previous-window # select previous window
#bind -r C-l next-window # select next window
#bind Tab last-window # move to last active window
# toggle mouse
bind m run "cut -c3- ~/.tmux.conf | sh -s toggle_mouse"
......@@ -98,23 +107,23 @@ bind F run "cut -c3- ~/.tmux.conf | sh -s fpp #{pane_id}"
# -- list choice ---------------------------------------------------------------
bind -t vi-choice h tree-collapse
bind -t vi-choice l tree-expand
run -b 'tmux bind -t vi-choice K start-of-list 2> /dev/null'
run -b 'tmux bind -t vi-choice J end-of-list 2> /dev/null'
bind -t vi-choice H tree-collapse-all
bind -t vi-choice L tree-expand-all
bind -t vi-choice Escape cancel
#~ bind -t vi-choice h tree-collapse
#~ bind -t vi-choice l tree-expand
#~ run -b 'tmux bind -t vi-choice K start-of-list 2> /dev/null'
#~ run -b 'tmux bind -t vi-choice J end-of-list 2> /dev/null'
#~ bind -t vi-choice H tree-collapse-all
#~ bind -t vi-choice L tree-expand-all
#~ bind -t vi-choice Escape cancel
# -- edit mode -----------------------------------------------------------------
# the following vi-copy bindings match my vim settings
# see https://github.com/gpakosz/.vim.git
bind -ct vi-edit H start-of-line
bind -ct vi-edit L end-of-line
bind -ct vi-edit q cancel
bind -ct vi-edit Escape cancel
#~ bind -ct vi-edit H start-of-line
#~ bind -ct vi-edit L end-of-line
#~ bind -ct vi-edit q cancel
#~ bind -ct vi-edit Escape cancel
# -- copy mode -----------------------------------------------------------------
......@@ -126,12 +135,12 @@ bind P choose-buffer # choose which buffer to paste from
# the following vi-copy bindings match my vim settings
# see https://github.com/gpakosz/.vim.git
bind -t vi-copy v begin-selection
bind -t vi-copy C-v rectangle-toggle
bind -t vi-copy y copy-selection
bind -t vi-copy Escape cancel
bind -t vi-copy H start-of-line
bind -t vi-copy L end-of-line
#~ bind -t vi-copy v begin-selection
#~ bind -t vi-copy C-v rectangle-toggle
#~ bind -t vi-copy y copy-selection
#~ bind -t vi-copy Escape cancel
#~ bind -t vi-copy H start-of-line
#~ bind -t vi-copy L end-of-line
# copy to Mac OSX pasteboard
if -b 'which -s reattach-to-user-namespace' 'bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy"'
......
Customized from [here](https://github.com/gpakosz/.tmux). Rename `tmux-config` to `.tmux` in `home` folder.
.tmux
=====
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment