Vim stores changes made to a buffer on disk to a swap file, so that any unsaved changes can be recovered in case of a crash.

See: :help swap-file