diff --git a/.tmux.conf b/.tmux.conf index 4dde436..7ff60f5 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -83,4 +83,7 @@ set -g status-right '#[fg=green]][ #[fg=blue]%Y-%m-%d #[fg=white]%H:%M#[default] set -g history-limit 4096 +#improve communication with vim +set -g focus-events on + bind r source-file ~/.tmux.conf diff --git a/.vimrc b/.vimrc index 227bef4..8030843 100644 --- a/.vimrc +++ b/.vimrc @@ -438,7 +438,8 @@ Plugin 'airblade/vim-gitgutter' Plugin 'tpope/vim-fugitive' " Comment block of code Plugin 'tpope/vim-commentary' - +" Make terminal vim and tmux work better together. +Plugin 'tmux-plugins/vim-tmux-focus-events' " language pack Plugin 'sheerun/vim-polyglot' " color even for terminal without gui...