By Nana Långstedt
A cheat sheet of some useful and most often used Vim commands. This Vim cheat sheet isn't trying to include all the Vim commands in the known universe, but should list the most essential ones.
:e filename - Open a new file. You can use the Tab key for automatic file name completion, just like at the shell command prompt.
:w filename - Save changes to a file. If you don't specify a file name, Vim saves as the file name you were editing. For saving the file under a different name, specify the file name.