Moving away from a buffer with unsaved changes will cause this error:
E37: No write since last change (add ! to override)
You can disable this by adding set hidden
to your .vimrc file. With this option set your changes will persist in the buffer, but will not be saved to disk.