diff options
Diffstat (limited to 'ftdetect/polyglot.vim')
-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 |