I have observed that in gedit if I edit a file, another file is created in the same directory (the one with the same filename and a tilde '~' suffix). The extra file remains even if I close gedit.
I understand the need for a temp file (eg. in case of a crash), but vim for example deletes the extra file it creates, when I close it.
Is there a way to do the same with gedit? Some configuration perhaps?