help with vi
by Alok Rai from LinuxQuestions.org on (#5BH8J)
Am trying to learn vi but seem to have come up with an initial problem.
I have been following a ryanstutorial about learning bash, and I also have a Linux in easy steps, by Mike McGrath at hand.
I am using Linux Mint 19 XFCE.
I am able to insert text. But when I try and save and exit, I run into problems with all the different commands that I can find in my two sources. Thus:
ZZ produces the message E212: Can't open file for writing
[ctrl] x produces the same message
:qa brings up the messages E37: No write since last change
and E212 - ditto - for buffer "test"
:qa! takes me out of vi and back to the shell prompt
:w - which I found in McGrath, is no help either.
This is probably something very elementary. But, at my level of skill, insurmountable.


I have been following a ryanstutorial about learning bash, and I also have a Linux in easy steps, by Mike McGrath at hand.
I am using Linux Mint 19 XFCE.
I am able to insert text. But when I try and save and exit, I run into problems with all the different commands that I can find in my two sources. Thus:
ZZ produces the message E212: Can't open file for writing
[ctrl] x produces the same message
:qa brings up the messages E37: No write since last change
and E212 - ditto - for buffer "test"
:qa! takes me out of vi and back to the shell prompt
:w - which I found in McGrath, is no help either.
This is probably something very elementary. But, at my level of skill, insurmountable.