From 6d675a93e6b7ecbe9a9c5844f2d504286c285f21 Mon Sep 17 00:00:00 2001 From: Cyteen Date: Mon, 5 Mar 2018 12:28:54 +0000 Subject: [PATCH] Make focus events work. --- 020_tmux.sh | 14 ++++++++++++-- 020_vim.sh | 6 ++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/020_tmux.sh b/020_tmux.sh index 9c1a42e..503f919 100644 --- a/020_tmux.sh +++ b/020_tmux.sh @@ -204,11 +204,16 @@ set-option -g status-position top set-option -g default-terminal "tmux-256color" +set-option -g repeat-time 0 + +# vim-tmux-focus-events requires this or tmux-plugins/tmux-sensible enabled below. +set -g focus-events on + set-window-option -g mode-keys vi bind-key -t vi-copy 'v' begin-selection bind-key -t vi-copy 'y' copy-selection -set-option -g repeat-time 0 + # Removes ESC delay set -sg escape-time 0 @@ -217,7 +222,6 @@ set -sg escape-time 0 set -g @tpm_plugins ' \ caiogondim/maglev \ tmux-plugins/tpm \ - tmux-plugins/tmux-sensible \ tmux-plugins/tmux-resurrect \ tmux-plugins/tmux-continuum \ tmux-plugins/tmux-yank \ @@ -229,6 +233,12 @@ set -g @tpm_plugins ' \ tmux-plugins/tmux-prefix-highlight \ ' +## Sets emac key binding +#set -g @tmp_plugins ' \ +# tmux-plugins/tmux-sensible \ +#' + + # Initialize TMUX plugin manager #run '~/.tmux/plugins/tpm/tpm' run '/usr/share/tmux-plugin-manager/tpm' diff --git a/020_vim.sh b/020_vim.sh index 7f057c7..9c0c2d0 100644 --- a/020_vim.sh +++ b/020_vim.sh @@ -163,8 +163,14 @@ Plugin 'terryma/vim-multiple-cursors' Plugin 'sudar/vim-arduino-syntax' Plugin 'ekalinin/Dockerfile.vim' Plugin 'tmux-plugins/vim-tmux' + +" requires tmux.conf setting: set -g focus-events on or tmux-plugins/tmux-sensible plugin. Plugin 'tmux-plugins/vim-tmux-focus-events' +" text objects - https://github.com/kana/vim-textobj-user/wiki +Plugin 'kana/vim-textobj-user' +Plugin 'bps/vim-textobj-python' + " toggleable panels Plugin 'tpope/vim-vinegar' Plugin 'vim-scripts/taglist.vim'