Ex mode command
:w - saving your work.
:x and :wq save and quit.
:q! - abort.
:w new.sh same as save as.
:w! new.sh to overwrite the existing file.
:n1,n2w new.sh copy the lines from n1 to n2 to the new.sh
:.n new.sh copy the current line to the new.sh
:$w copy the last line to the file
:sh to move to the shell from the program.