I running TSL Linux and I have one question about vim....

I know how to edit text in vim but I dont know how to save...

And I also need to know how can I add smbd to start up so that it can run automaticaly when Linux starting up.

pls, do some one know and can help me?