Undo a recent action

We all make mistakes. Even gedit users make mistakes. Fortunately, gedit can help you recover from mistakes. To undo an action in gedit, press Ctrl+Z, or click Edit ▸ Undo.

gedit will undo one action every time you press Ctrl+Z or select Edit ▸ Undo.