Text Files copied to hidden directory and potentially overwritten without warning

If I open a text file with the File Manager which is stored under ~/Documents, and then safe it within tedit, a copy of the file is stored under ~/.local/share/tedit.danfro, without any further explanation. Hence, when opening the original file again from ~/Documents, potential changes are not visible (because the modified file now lives under ~/.local/share/tedit.danfro). And if additional changes are made to the original file, and then saved again, tedit overwrites any former file under ~/.local/share/tedit.danfro without additional warning.

Maybe it's just me who doesn't know how to use a plain text editor, but I found this behaviour disturbing. Sometimes I edit my text files with vim. So, am I expected to merge all variants of multiple versions of the same simple text file afterwards? Having a graphical text editor is for sure appreciated, but messing around with the file locations is confusing at least (and also a potential loss of information, if files get overwritten without warning - and yes, that happened to me).