I have autoread working via my .vimrc:
set autoread
au CursorHold,FocusGained,BufEnter * checktime
When vim reloads a buffer due to it having changed, it both scrolls the buffer and changes the current cursor position to a seemingly random point in the file, although occasionally it stays in the same place. I have experimented with it, but no pattern is apparent.
Is there a way to prevent this, or to save and restore the cursor position when reloading?