mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-13 22:13:50 -05:00
Make editing same file in multiple vim instances seamless
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user