reload file on disk change

This commit is contained in:
2023-08-28 19:04:52 +02:00
parent ee3006c643
commit 8a76d7e7f8

View File

@@ -65,6 +65,9 @@ augroup vimrc
autocmd BufWritePre * call s:StripTrailing()
autocmd BufNewFile,BufRead *.pdc,*.pandoc setlocal filetype=markdown
autocmd FileType go setlocal noexpandtab sw=8
autocmd FocusGained,BufEnter,CursorHold,CursorHoldI * checktime
autocmd BufReadPost *
\ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit'
\ | exe "normal! g`\""