]> Sergey Matveev's repositories - dotfiles.git/blobdiff - tmux/.tmux.conf
Do not use vim-lsp-settings for simplicity
[dotfiles.git] / tmux / .tmux.conf
index c59768cdc34863856720d6fb5c8a5c73ef1c7fad..2ba36e27a94bdb4fe96c37acb8fa1745835147b6 100644 (file)
@@ -1,9 +1,10 @@
 set-option -g mode-keys vi
 set-option -g base-index 1
 set-option -g default-terminal "screen-256color"
-set-option -g escape-time 50
+set-option -g escape-time 1
 set-option -g repeat-time 0
 set-option -g history-limit 20000
+set-option -g renumber-windows on
 
 set-option -g prefix C-a
 unbind-key C-b
@@ -12,6 +13,7 @@ bind-key C-a send-prefix
 bind-key -n C-PgUp previous-window
 bind-key -n C-PgDn next-window
 bind-key -n S-PgUp copy-mode -u
+
 bind '"' split-window -c "#{pane_current_path}"
 bind % split-window -h -c "#{pane_current_path}"
 bind c new-window -c "#{pane_current_path}"
@@ -30,6 +32,7 @@ set-window-option -g window-status-current-bg red
 set-window-option -g window-status-last-bg cyan
 
 bind-key u capture-pane -J \; save-buffer /tmp/tmux-buffer \; split-window 'urlview /tmp/tmux-buffer' \; delete-buffer
-bind-key y capture-pane -J \; save-buffer /tmp/tmux-buffer \; split-window 'vim /tmp/tmux-buffer' \; delete-buffer
+bind-key y capture-pane -J \; save-buffer /tmp/tmux-buffer \; split-window 'vim -c "set listchars=" -c "match ExtraWhitespace //" /tmp/tmux-buffer' \; delete-buffer
+bind-key Y capture-pane -J -S - -E - \; save-buffer /tmp/tmux-buffer \; split-window 'vim -c "set listchars=" -c "match ExtraWhitespace //" /tmp/tmux-buffer' \; delete-buffer
 bind-key b set-option status
 unbind-key L