vim save in a file name 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