When using Vim to modify some configuration files,

Use the following commands :q and :wq and! W can’t even quit!

When you enter the file directly with vi+ Enter, these commands cannot exit the file.

Solutions:

Just press CTRL + Z to exit