macvim
macvim copied to clipboard
buffer renamed "expand(" on save
This issue has plagued me for years in MacVim and I have not been able to identify the source. It is intermittent, and occurs roughly 1 every 100 hundred saves (so probably 2 or 3 times per day). I cannot say what triggers it but I have not been able to make it go away. Any advice or fix gratefully received.
What happens:
- I hit
<D-s>
to save current buffer, which is already associated with a filename - the buffer is not saved
- current buffer is magically renamed
expand(
, the contents are unaffected - editing continues as normal (If I try to save again, then a new file called
expand(
is saved to disk).
Environment
- Vim version 8.2
- MacOS 11.6
- Terminal: GUI
Hey @msprev Could you share your configuration for an investigation?
I never had such situation and I suppose that somewhere there's a small bug.
Thank you! I've pasted my vimrc configuration here if you can spot anything there that would cause it: https://gist.github.com/msprev/95271315a2357ab985b963e800b5a73f