save and ecxitg vim 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