Reputation: 485
I'm working on lab 3 of the Git Immersion tutorial and when I was trying to create a folder and a file called hello and hello.rb, respectively, I tried the command
$ vim hello.rb
and it took me to a screen with lots of tildas on the left side and a previous cd command call when I was trying to redirect to my Downloads folder. After hitting "." and "Backspace" a few times, more lines of previously executed code started popping up. I hit control z to luckily navigate back and now I see a
[1]+ Stopped vim hello.rb
What does this mean and what should I do to make sure I didn't screw up big time?
Upvotes: 0
Views: 378
Reputation: 124824
The control-z put the Vim command in background.
The output [1]+ Stopped
means that the job is stopped (it can be resumed), and it's job number is 1.
If you want to exit the Vim process without saving anything, you can kill it with:
kill -9 %1
And it seems you're not familiar with the Vim editor, that's why you don't understand what you're looking at, and how to exit from it. If you want to use Vim, read some tutorials first.
Upvotes: 3