set autowrite so that
:make automatically saved the file before running the build command. But now I'm increasingly using
:buffer to switch between buffers, and have now noticed that it silently saves the file, unlike
:edit, to which
autowrite doesn't apply.
I'd like to have
:make write the file out, while still having
:buffer refuse to switch buffers if current file is unsaved (similarly to
Is there any way to achieve this?