undo VIM Command
How to use undo Command in Linux VIM editor?
This command is used to undo a change done in the editor. After you done the changes in the file, if you think the change is not necessary. Then you can undo the change, before you save the changes.
- Open the file test.txt using the command
$ vim test.txt
- The text in the file is
- To make the editor into insert mode
- Enter the text 'Hiox India'
- To come out of insert mode
- To undo the insertion