I tried to quit vim
"/etc/sysconfig/network-scripts"
"/etc/sysconfig/network-scripts" E212: Can't open file for writing
Press ENTER or type command to continue
When I press Enter, it returns to edit mode. I tried
!q
Press ENTER or type command to continue
[No write since last change]
/bin/bash: q: command not found
shell returned 127
Press ENTER or type command to continue
I press Enter, it returns to the previous editor mode again.
How can I quit vim in this situation?
q!
with!q
– Alvin Liang Dec 12 '18 at 09:45