]> Sergey Matveev's repositories - dotfiles.git/commitdiff
No whitespace highlighting in P-[yY] in tmux
authorSergey Matveev <stargrave@stargrave.org>
Thu, 11 Jun 2020 06:30:13 +0000 (09:30 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 11 Jun 2020 06:30:13 +0000 (09:30 +0300)
tmux/.tmux.conf

index 629859a390314bba471fdc1bed0f2de794723dfa..2ba36e27a94bdb4fe96c37acb8fa1745835147b6 100644 (file)
@@ -13,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-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}"
 bind '"' split-window -c "#{pane_current_path}"
 bind % split-window -h -c "#{pane_current_path}"
 bind c new-window -c "#{pane_current_path}"
@@ -31,7 +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
 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 -S - -E - \; 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
 bind-key b set-option status
 unbind-key L