vim command to open a file

Shell
vim filename 
i
*Insert/Edit Text*
*Esc*
:wq       (save the file and exit to commands)
Source

Also in Shell: