From 977b0e91e9b02d103dd43898e9ceed0304e0169a Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Tue, 2 Jun 2020 10:45:05 +0000 Subject: [PATCH] vim: add vim-tmux-focus-events; set autoread --- vimrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vimrc b/vimrc index 657efa9..9a54e8f 100644 --- a/vimrc +++ b/vimrc @@ -37,6 +37,7 @@ call plug#begin('~/.vim/plugged') Plug 'wesQ3/vim-windowswap' Plug 'majutsushi/tagbar' Plug 'tpope/vim-obsession' + Plug 'tmux-plugins/vim-tmux-focus-events' if version >= 800 Plug 'neoclide/coc.nvim', {'branch': 'release'} @@ -45,6 +46,9 @@ call plug#begin('~/.vim/plugged') Plug 'dense-analysis/ale' Plug 'tpope/vim-commentary' + Plug 'vim-airline/vim-airline' + Plug 'vim-airline/vim-airline-themes' + Plug 'posva/vim-vue' Plug 'ap/vim-css-color' Plug 'pangloss/vim-javascript' @@ -76,8 +80,13 @@ map =j :%!jq set backupdir=/tmp//,. set directory=/tmp//,. +" Enable visible line numbers set number +" When we return to Vim, or re-enter a buffer, check if it's been modified. +set autoread +au FocusGained,BufEnter * :checktime + " Make the current word upper-case; useful for constants. nnoremap wu viwU nnoremap wl viwu