vim save to new file 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