:wq will save and then exit, while :x will save only if the file has been modified and then exit, and then there's ZZ that does the same as :x, plus there are probably others:-)
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
replies: