I am a fresh to the vi / vim text editor user. Can I quit the vi / vim text editor without saving my changes to a file under Linux -Unix OS Systems?
vi or vim is a text based editor. You can use it to change text files.. Write programs in Perl, Python, C, bash etc. To exit or quite the vim/vi text editor without saving any changes press:
:q! ENTER
In more detail:
A-First, you need to press Esc key to get out of insert or append mode.
B-Next type colon (: symbol)
C-You see the cursor at the lower left corner of the screen.
Finally, type the following command to quit without saving anything to a file: q!
This will force vi/vim to quit the editor,Every change will be lost forever.
Getting more info on how to use vim text editor
Need more info? Just use the command:
$ vimtutor