I have multiple buffers open, some currently visible, some not. I know I can write all of them with :wa. However, I am curious, why :bufdo w does not work. When I try it in a buffer with unsaved changes, vim tells me E37: No write since last change (add ! to override)Why is this so?
Why can't I execute write command on all buffers with :bufdo?
buffers;save
I'm feeling like you don't have the option hidden set.Basically, it means that you cannot switch from an unwritten buffer to another one.In your case you cannot save any buffer because it should change from an unwritten buffer. Adding the hidden option will fix this.You can find more with : :h hidden.