diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-24 17:32:39 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-24 17:32:39 +0200 |
commit | 739102e06df4fe5bca752d1163b954603912bc98 (patch) | |
tree | f60333e4ff1820a9a93fa32bd870d52b97bfefd9 /ftdetect | |
parent | f52f6b9519f51faeeeae123a852a7bacc82089d5 (diff) | |
download | vim-polyglot-4.16.0.tar.gz vim-polyglot-4.16.0.zip |
Make editing same file in multiple vim instances seamlessv4.16.0
Diffstat (limited to '')
-rw-r--r-- | ftdetect/polyglot.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 49b2c894..c2a6ae17 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -8,6 +8,7 @@ if exists("did_load_polyglot") finish endif + let did_load_polyglot = 1 " Switch to compatible mode for the time being @@ -3496,6 +3497,15 @@ if !has_key(s:disabled_packages, 'sensible') " Reload unchanged files automatically. set autoread + " Disable swap, it doesn't play well with autoread + set noswapfile + + " Auto reload if file was changed somewhere else (for autoread) + augroup polyglot-sensible + au! + au CursorHold * checktime + augroup END + " Enable highlighted case-insensitive incremential search. set incsearch |