I have a mysterious, troubling, and extremely irritating problem with what might be called auto-edits of my vimrc file.
It only happens when I open vimrc file from buffer list (ie there are a number of buffers listed) or with :e vimrc
.
It only happens very occasionally and so is almost impossible to debug.
What happens is, when opening my vimrc file from the bufferlist, the first thing that happens is one char is deleted in normal mode wherever the cursor happens to be (I have a very standard function in vimrc to place cursor at last position).
I'm getting good at spotting it when it does happen but I've missed it in the past and it's created huge problems; it is, after all, my vimrc file and pretty massive at that (currently 3700+ lines)!
If I could somehow initiate a debugging session when I see it happening (because when it does happen, I can switch between buffers and watch it happen again and again), but if I ever try to start vim in verbose mode (eg. gvim -V9myVim.log
) I've never managed to replicate the issue.
It's so frustrating and I'm beginning to believe it's not just 'accidental' (portentous squinting and furrowing of brow).
Please help!
VIM - Vi IMproved 8.1 (2018 May 18, compiled Sep 9 2018 01:29:11) MS-Windows 32-bit GUI version with OLE support Included patches: 1-354
:au FileType vim
; although it could also be on some other event (use:au
to see all of them, but it will probably be a long list, you can add it to a buffer with:call setline('.', execute('au')->split('\n'))
and then search forvim
maybe). But like Christian said: I'd try with a newer Vim first; 8.1.354 is almost three years old.