From 15e2ce5cf9abf7dd1ccae2aa6807dbd38df9bd17 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Tue, 8 Dec 2015 14:59:32 +0100 Subject: [PATCH] [vim][tmux] Better work between them --- .tmux.conf | 3 +++ .vimrc | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) 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...