updates incl bigass refresh of vim init
This commit is contained in:
+12
-7
@@ -29,6 +29,12 @@ set -g default-terminal "tmux-256color"
|
||||
set -g base-index 1
|
||||
setw -g pane-base-index 1
|
||||
|
||||
# pane title
|
||||
setw -g pane-border-status top
|
||||
setw -g pane-border-format ' #{=/-20/…:pane_title} [#{=/-20/…:pane_current_command}] #(pgrep -P "#{pane_pid}" | tr "\n" " ")#{pane_current_path} #{?alternate_on,<Alt Mode> ,}'
|
||||
#set -g pane-border-format "#P: #{pane_current_command}"
|
||||
|
||||
|
||||
# Automatically set window title
|
||||
set-window-option -g automatic-rename on
|
||||
set-option -g set-titles on
|
||||
@@ -41,8 +47,8 @@ set-option -g set-titles on
|
||||
# Set new prefix
|
||||
# Note : you can press super key by set M.
|
||||
# (tested with tty only)
|
||||
set -g prefix C-a
|
||||
bind C-a send-prefix
|
||||
set -g prefix M-a
|
||||
bind M-a send-prefix
|
||||
|
||||
# First remove *all* keybindings
|
||||
unbind -a
|
||||
@@ -52,19 +58,18 @@ bind ? list-keys
|
||||
bind d detach-client
|
||||
bind D choose-client
|
||||
bind : command-prompt
|
||||
bind Enter command-prompt
|
||||
#bind \ show-messages
|
||||
|
||||
# Copy mode
|
||||
bind c copy-mode
|
||||
bind v copy-mode
|
||||
|
||||
# clipboard control
|
||||
bind P paste-buffer
|
||||
bind -T copy-mode-vi v send-keys -X begin-selection
|
||||
#bind -T copy-mode-vi y send-keys -X copy-selection
|
||||
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard"
|
||||
bind -T copy-mode-vi r send-keys -X rectangle-toggle
|
||||
|
||||
|
||||
bind -T copy-mode-vi Escape send-keys -X cancel
|
||||
|
||||
# Refresh client
|
||||
bind R refresh-client \; display-message "Refresh already"
|
||||
@@ -133,7 +138,7 @@ bind -n M-0 if-shell 'tmux select-window -t :10' '' 'new-window -t :10'
|
||||
bind Q kill-pane
|
||||
|
||||
# clear selected pane
|
||||
bind-key b send-keys -R \; clear-history
|
||||
bind-key b send-keys -R \; clear-history \; send-keys Enter
|
||||
|
||||
# present a menu of URLs to open from the visible pane. sweet.
|
||||
bind u capture-pane \;\
|
||||
|
||||
Reference in New Issue
Block a user