how to save file in vim terminal code example
Example: vim save file
// Save a new file (if you have entered vim without first creating a file)
:w <filename>
// Save file and exit
:x
// Save a new file (if you have entered vim without first creating a file)
:w <filename>
// Save file and exit
:x