mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-08 11:33:52 -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
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
let did_load_polyglot = 1
|
let did_load_polyglot = 1
|
||||||
|
|
||||||
" Switch to compatible mode for the time being
|
" Switch to compatible mode for the time being
|
||||||
@@ -3496,6 +3497,15 @@ if !has_key(s:disabled_packages, 'sensible')
|
|||||||
" Reload unchanged files automatically.
|
" Reload unchanged files automatically.
|
||||||
set autoread
|
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.
|
" Enable highlighted case-insensitive incremential search.
|
||||||
set incsearch
|
set incsearch
|
||||||
|
|
||||||
|
|||||||
@@ -62,6 +62,11 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'sensible') == -
|
|||||||
set tabpagemax=50
|
set tabpagemax=50
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Reduce updatetime from 4000 to 300 to avoid issues with coc.nvim
|
||||||
|
if &updatetime == 4000
|
||||||
|
set updatetime=300
|
||||||
|
endif
|
||||||
|
|
||||||
" Always save upper case variables to viminfo file.
|
" Always save upper case variables to viminfo file.
|
||||||
if !empty(&viminfo)
|
if !empty(&viminfo)
|
||||||
set viminfo^=!
|
set viminfo^=!
|
||||||
|
|||||||
Reference in New Issue
Block a user