Editing files in the text editor:
There may be another difficulty here - if you edited the file and then changed your mind to change it, then when trying to get out of the editor, it will tell you that, for example, the file is not saved, and will refuse to let you go. In order to insist on your own, you can put a crying sign after the command, then the editor will understand that you are serious and will not argue with you.